@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 65, 0.03) 0px,
            rgba(0, 255, 65, 0.03) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 4px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05), inset 0 0 30px rgba(0, 255, 65, 0.02);
}

.auth-card::before {
    content: '> secure_messenger v1.0';
    position: absolute;
    top: -20px;
    left: 12px;
    font-size: 11px;
    color: rgba(0, 255, 65, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.auth-icon {
    font-size: 40px;
    margin-bottom: 16px;
    filter: hue-rotate(90deg) brightness(1.2);
}

h1 {
    color: #00ff41;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.auth-subtitle {
    color: rgba(0, 255, 65, 0.5);
    font-size: 12px;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    color: rgba(0, 255, 65, 0.6);
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label::before {
    content: '$ ';
    color: rgba(0, 255, 65, 0.3);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 2px;
    color: #00ff41;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: rgba(0, 255, 65, 0.2);
}

.form-group input:focus {
    border-color: #00ff41;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
    background: rgba(0, 255, 65, 0.08);
}

.error-message {
    color: #ff3333;
    font-size: 12px;
    min-height: 20px;
    margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(255, 51, 51, 0.3);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid #00ff41;
    border-radius: 2px;
    color: #00ff41;
    font-size: 14px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: none;
}

.btn-primary:active {
    background: rgba(0, 255, 65, 0.15);
    transform: none;
}

.auth-link {
    margin-top: 24px;
    color: rgba(0, 255, 65, 0.4);
    font-size: 12px;
}

.auth-link a {
    color: #00ff41;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.auth-link a:hover {
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}
