/* --- AUTH CONTAINER --- */
.auth-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* --- GLASS CARD --- */
.auth-card {
    width: 100%;
    max-width: 450px;
    background: rgba(10, 15, 20, 0.85); /* Sötétebb alap */
    backdrop-filter: blur(15px); /* Üveghatás */
    border: 1px solid var(--fox-cyan-primary); /* Neon keret */
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
    padding: 3rem;
    border-radius: 5px; /* Szögletesebb sarkok tech stílushoz */
    position: relative;
    overflow: hidden;
}

/* --- DEKORÁCIÓS ELEMEK --- */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--fox-cyan-primary), transparent);
    animation: scan-line 3s infinite linear;
}
.auth-card::after {
    content: 'SECURE TERMINAL';
    position: absolute;
    bottom: 5px; right: 10px;
    font-family: monospace;
    font-size: 10px;
    color: var(--fox-cyan-primary);
    opacity: 0.5;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.auth-card h2 {
    text-align: center;
    color: var(--fox-cyan-primary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.auth-card h2 i {
    color: var(--fox-cyan-primary);
    font-size: 1.5rem;
}

/* --- SCANNER EFFECT --- */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--fox-cyan-primary);
    box-shadow: 0 0 10px var(--fox-cyan-glow);
    animation: scan-vertical 3s linear infinite;
    opacity: 0.5;
}

@keyframes scan-vertical {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- INPUT MEZŐK --- */
.tech-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.tech-input-group i {
    position: absolute;
    left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--fox-cyan-primary);
    z-index: 2;
}
.auth-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    color: #fff;
    font-family: 'Fira Code', monospace; /* Tech font */
    font-size: 0.95rem;
    transition: all 0.3s;
}
.auth-input:focus {
    border-color: var(--fox-cyan-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    outline: none;
}

.auth-input--date {
    appearance: none;
    color-scheme: dark;
}

.auth-input--date::-webkit-calendar-picker-indicator {
    filter: invert(67%) sepia(69%) saturate(749%) hue-rotate(138deg) brightness(101%) contrast(100%);
    cursor: pointer;
}

.auth-input--date::-webkit-calendar-picker-indicator:hover {
    filter: drop-shadow(0 0 4px var(--fox-cyan-glow));
}

.tech-input-group .toggle-password,
.tech-input-group .toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7dd9ff;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.tech-input-group .toggle-password:hover,
.tech-input-group .toggle-btn:hover {
    color: var(--fox-cyan-primary);
}

.password-strength-container {
    width: 100%;
    margin: -0.5rem 0 1.2rem;
    padding-left: 45px;
}

.password-strength-container .strength-bar {
    width: 0%;
    height: 4px;
    background: #ff004c;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength-container .strength-text {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    text-align: right;
    color: #bbb;
}

/* --- GOMBOK --- */
.btn-auth {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--fox-cyan-primary);
    color: var(--fox-cyan-primary);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.btn-auth:hover {
    background: var(--fox-cyan-primary);
    color: #000;
    box-shadow: 0 0 25px var(--fox-cyan-glow);
}

.auth-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.auth-link:hover {
    color: var(--fox-cyan-primary);
    text-decoration: underline;
}

/* --- ALERT MESSAGES --- */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid;
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.alert-success {
    background: rgba(0, 200, 81, 0.1);
    border-color: #00C851;
    color: #00C851;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.2);
}

/* --- AUTH HEADER --- */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    color: var(--fox-cyan-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.auth-header h2 {
    color: var(--fox-cyan-primary);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin: 0;
}

/* --- CURSOR FIX (no !important — scoped to .auth-container) --- */
.auth-container .auth-input,
.auth-container .auth-card,
.auth-container a {
    cursor: auto;
}
input, button, a {
    cursor: pointer;
}
input[type="text"], input[type="email"], input[type="password"], input[type="date"] {
    cursor: text;
}

/* --- BINARY RAIN CANVAS (FULLSCREEN) --- */
#binary-canvas {
    position: fixed; /* Teljes képernyős */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Minden mögött */
    opacity: 0.8; /* Kicsit áttetsző */
    pointer-events: none; /* Ne zavarja a kattintásokat */
}

