/* =====================================================
   FYROS GAMES STUDIO - MILITARY FPS AUTH SYSTEM STYLES
   ===================================================== */

/* --- CSS VARIABLES FOR AUTH --- */
:root {
    --auth-primary: #ffb400;
    --auth-danger: #ff4400;
    --auth-success: #00ff88;
    --auth-warning: #ff6600;
    --auth-bg-dark: rgba(8, 8, 10, 0.98);
    --auth-bg-panel: rgba(12, 12, 15, 0.95);
    --auth-border: #1a1a1a;
    --auth-glow: rgba(255, 180, 0, 0.3);
    --auth-red-glow: rgba(255, 68, 0, 0.3);
    --auth-green-glow: rgba(0, 255, 136, 0.3);
}

/* --- AUTH MODAL OVERLAY --- */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(8px);
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

/* --- GLITCH SCANLINES FOR AUTH --- */
.auth-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%),
        linear-gradient(90deg, rgba(255, 68, 0, 0.03), rgba(0, 255, 136, 0.02), rgba(255, 180, 0, 0.03));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    animation: authScanFlicker 0.1s infinite;
}

@keyframes authScanFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.5; }
}

/* --- MILITARY GRID BACKGROUND --- */
.auth-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 180, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 180, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* --- RADAR SWEEP EFFECT --- */
.auth-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 180, 0, 0.1);
    overflow: hidden;
    pointer-events: none;
}

.auth-radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255, 180, 0, 0.1) 30deg,
        transparent 60deg
    );
    transform-origin: 0 0;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- AUTH MODAL CONTAINER --- */
.auth-modal {
    position: relative;
    width: 90%;
    max-width: 480px;
    background: var(--auth-bg-panel);
    border: 1px solid var(--auth-border);
    padding: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.8),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.auth-overlay.active .auth-modal {
    transform: scale(1) translateY(0);
}

/* --- MODAL HEADER SECTION --- */
.auth-header {
    background: linear-gradient(180deg, rgba(255, 180, 0, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid var(--auth-border);
    padding: 30px 40px 20px;
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--auth-primary), transparent);
    animation: headerGlow 2s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.auth-classification {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: var(--auth-danger);
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-classification::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--auth-danger);
    animation: classificationBlink 1s infinite;
}

@keyframes classificationBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.auth-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 20px var(--auth-glow);
}

.auth-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 2px;
    margin-top: 8px;
}

/* --- MODAL BODY --- */
.auth-body {
    padding: 30px 40px 40px;
    position: relative;
}

/* --- FORM GROUP STYLING --- */
.auth-form-group {
    margin-bottom: 25px;
    position: relative;
}

.auth-label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--auth-primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    color: #444;
    transition: color 0.3s;
    z-index: 1;
}

.auth-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #222;
    padding: 15px 15px 15px 50px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    outline: none;
}

.auth-input::placeholder {
    color: #444;
    font-style: italic;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    box-shadow:
        0 0 20px var(--auth-glow),
        inset 0 0 20px rgba(255, 180, 0, 0.05);
}

.auth-input:focus + .auth-input-icon,
.auth-input:focus ~ .auth-input-icon {
    color: var(--auth-primary);
}

/* --- PASSWORD TOGGLE --- */
.auth-password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

/* --- PASSWORD STRENGTH INDICATOR --- */
.auth-password-strength {
    margin-top: 10px;
    height: 4px;
    background: #111;
    position: relative;
    overflow: hidden;
}

.auth-password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.auth-password-strength-bar.weak { width: 25%; background: var(--auth-danger); }
.auth-password-strength-bar.fair { width: 50%; background: var(--auth-warning); }
.auth-password-strength-bar.good { width: 75%; background: var(--auth-primary); }
.auth-password-strength-bar.strong { width: 100%; background: var(--auth-success); }

.auth-password-strength-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

.auth-password-strength-text.weak { color: var(--auth-danger); }
.auth-password-strength-text.fair { color: var(--auth-warning); }
.auth-password-strength-text.good { color: var(--auth-primary); }
.auth-password-strength-text.strong { color: var(--auth-success); }

/* --- VALIDATION MESSAGES --- */
.auth-validation {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s;
}

.auth-validation.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-validation.error { color: var(--auth-danger); }
.auth-validation.success { color: var(--auth-success); }

/* --- CHECKBOX STYLING --- */
.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.auth-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.auth-checkbox:checked {
    border-color: var(--auth-primary);
    background: rgba(255, 180, 0, 0.2);
}

.auth-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 4px;
    height: 10px;
    border: solid var(--auth-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-checkbox-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    color: #888;
}

/* --- PRIMARY ACTION BUTTON --- */
.auth-btn-primary {
    width: 100%;
    background: transparent;
    border: 2px solid var(--auth-primary);
    color: var(--auth-primary);
    padding: 18px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    margin-top: 10px;
}

.auth-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 180, 0, 0.3), transparent);
    transition: left 0.5s;
}

.auth-btn-primary:hover::before {
    left: 100%;
}

.auth-btn-primary:hover {
    background: var(--auth-primary);
    color: #000;
    box-shadow:
        0 0 30px var(--auth-glow),
        0 0 60px rgba(255, 180, 0, 0.2);
    text-shadow: none;
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* --- LOADING STATE FOR BUTTON --- */
.auth-btn-primary.loading {
    pointer-events: none;
    background: rgba(255, 180, 0, 0.1);
}

.auth-btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--auth-primary);
    border-radius: 50%;
    animation: btnSpinner 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes btnSpinner {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- SECONDARY BUTTONS --- */
.auth-btn-secondary {
    background: none;
    border: 1px solid #333;
    color: #666;
    padding: 12px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.auth-btn-secondary:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

/* --- GUEST MODE BUTTON --- */
.auth-btn-guest {
    width: 100%;
    background: rgba(0, 255, 136, 0.05);
    border: 1px dashed #333;
    color: #666;
    padding: 15px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    text-transform: uppercase;
}

.auth-btn-guest:hover {
    border-color: var(--auth-success);
    color: var(--auth-success);
    background: rgba(0, 255, 136, 0.1);
}

/* --- MODAL LINKS --- */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

.auth-link {
    background: none;
    border: none;
    color: #555;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-primary);
}

/* --- CLOSE BUTTON --- */
.auth-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid #333;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.auth-close:hover {
    border-color: var(--auth-danger);
    color: var(--auth-danger);
    box-shadow: 0 0 20px var(--auth-red-glow);
}

/* --- MODAL CORNER DECORATIONS --- */
.auth-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--auth-primary);
    pointer-events: none;
}

.auth-corner.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.auth-corner.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.auth-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.auth-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* --- STATUS INDICATOR --- */
.auth-status {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 1px;
}

.auth-status-dot {
    width: 6px;
    height: 6px;
    background: var(--auth-success);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--auth-success); }
    50% { opacity: 0.5; box-shadow: none; }
}

/* --- DIVIDER --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: #333;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
}

/* --- SUCCESS ANIMATION OVERLAY --- */
.auth-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 136, 0.1);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
}

.auth-success-overlay.active {
    display: flex;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--auth-success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.auth-success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--auth-success);
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: successCheck 0.5s ease forwards 0.3s;
}

@keyframes successCheck {
    100% { stroke-dashoffset: 0; }
}

.auth-success-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--auth-success);
    letter-spacing: 4px;
    margin-top: 20px;
    text-transform: uppercase;
}

.auth-success-subtext {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    margin-top: 10px;
}

/* --- TYPING EFFECT --- */
.auth-typing {
    overflow: hidden;
    border-right: 2px solid var(--auth-primary);
    white-space: nowrap;
    animation:
        authTyping 2s steps(30, end),
        authBlink 0.75s step-end infinite;
}

@keyframes authTyping {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes authBlink {
    from, to { border-color: transparent; }
    50% { border-color: var(--auth-primary); }
}

/* --- HEADER USER INDICATOR --- */
.auth-user-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--auth-bg-panel);
    border: 1px solid var(--auth-border);
    padding: 10px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-user-status:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

.auth-user-status.logged-in {
    border-color: var(--auth-success);
}

.auth-user-status.logged-in .auth-user-dot {
    background: var(--auth-success);
}

.auth-user-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
}

.auth-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--auth-bg-panel);
    border: 1px solid var(--auth-border);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.auth-user-indicator:hover .auth-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-user-dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid #111;
    color: #888;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-user-dropdown-item:hover {
    background: rgba(255, 180, 0, 0.1);
    color: var(--auth-primary);
}

.auth-user-dropdown-item:last-child {
    border-bottom: none;
}

.auth-user-dropdown-item.danger:hover {
    background: rgba(255, 68, 0, 0.1);
    color: var(--auth-danger);
}

/* --- GLITCH TEXT EFFECT --- */
.auth-glitch {
    position: relative;
}

.auth-glitch::before,
.auth-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.auth-glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--auth-danger);
    clip: rect(24px, 550px, 90px, 0);
    animation: authGlitch1 2s infinite linear alternate-reverse;
}

.auth-glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--auth-success);
    clip: rect(85px, 550px, 140px, 0);
    animation: authGlitch2 2s infinite linear alternate-reverse;
}

@keyframes authGlitch1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 30px, 0); }
    85% { clip: rect(54px, 9999px, 39px, 0); }
    90% { clip: rect(36px, 9999px, 98px, 0); }
    95% { clip: rect(39px, 9999px, 43px, 0); }
    100% { clip: rect(17px, 9999px, 82px, 0); }
}

@keyframes authGlitch2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 25px, 0); }
    100% { clip: rect(38px, 9999px, 91px, 0); }
}

/* --- PARTICLE EFFECT ON SUCCESS --- */
.auth-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.auth-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--auth-primary);
    opacity: 0;
}

/* --- HEXAGON DECORATION --- */
.auth-hex-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    pointer-events: none;
}

.auth-hex-decoration.top-right {
    top: 80px;
    right: 60px;
}

.auth-hex-decoration.bottom-left {
    bottom: 80px;
    left: 60px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .auth-modal {
        width: 95%;
        max-width: none;
        margin: 10px;
    }

    .auth-header {
        padding: 20px 25px 15px;
    }

    .auth-title {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .auth-body {
        padding: 20px 25px 30px;
    }

    .auth-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .auth-user-indicator {
        top: 10px;
        right: 10px;
    }

    .auth-user-status {
        padding: 8px 12px;
        font-size: 0.6rem;
    }

    .auth-radar {
        width: 300px;
        height: 300px;
    }
}

/* --- SHAKE ANIMATION FOR ERRORS --- */
@keyframes authShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.auth-shake {
    animation: authShake 0.5s ease;
}

/* --- TAB NAVIGATION --- */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--auth-border);
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--auth-primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.auth-tab:hover {
    color: #888;
}

.auth-tab.active {
    color: var(--auth-primary);
}

.auth-tab.active::after {
    transform: scaleX(1);
}

/* --- BIOMETRIC SCANNER ANIMATION --- */
.auth-biometric {
    width: 100%;
    height: 4px;
    background: #111;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.auth-biometric::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--auth-primary), transparent);
    animation: biometricScan 2s ease-in-out infinite;
}

@keyframes biometricScan {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* --- DATA ENCRYPTION ANIMATION --- */
.auth-encrypting {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
}

.auth-encrypting.active {
    display: flex;
}

.auth-encrypt-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--auth-primary);
    position: relative;
    animation: encryptRotate 2s linear infinite;
}

@keyframes encryptRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-encrypt-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 2px solid var(--auth-primary);
    transform: translate(-50%, -50%) rotate(45deg);
}

.auth-encrypt-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--auth-primary);
    letter-spacing: 2px;
}

/* --- REQUIREMENTS LIST --- */
.auth-requirements {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #1a1a1a;
    padding: 15px;
    margin-top: 15px;
}

.auth-requirements-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.auth-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    color: #555;
    margin: 8px 0;
    transition: color 0.3s;
}

.auth-requirement.met {
    color: var(--auth-success);
}

.auth-requirement-icon {
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.auth-requirement.met .auth-requirement-icon {
    background: var(--auth-success);
    border-color: var(--auth-success);
    color: #000;
}
