/* AUTHENTICATION OVERLAY STYLES */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-overlay.active .auth-card {
    transform: translateY(0);
}

.auth-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.auth-close:hover {
    color: var(--fg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 48px;
    margin-bottom: 16px;
}

.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--fg);
    margin-bottom: 8px;
}

.auth-sub {
    font-size: 11px;
    color: var(--gray);
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    position: relative;
}

.auth-label {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
    margin-left: 4px;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 14px;
    color: var(--fg);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}

.auth-input:focus {
    border-color: var(--fg);
    background: rgba(255, 255, 255, 0.05);
}

.auth-btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray);
    font-size: 9px;
    letter-spacing: 2px;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.social-btn img {
    height: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 11px;
    color: var(--gray);
}

.auth-footer span {
    color: var(--fg);
    cursor: pointer;
    font-weight: 700;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 24px;
    }
    .auth-header { margin-bottom: 24px; }
    .auth-title { font-size: 28px; }
    .auth-form { gap: 12px; }
    .auth-input { padding: 14px 18px; font-size: 12px; }
    .auth-btn-primary { padding: 16px; font-size: 16px; }
    .auth-social { gap: 8px; }
    .social-btn { padding: 10px; }
}

/* DESKTOP TWO-COLUMN LAYOUT */
@media (min-width: 769px) {
    .desktop-auth-card {
        max-width: 800px;
        display: flex;
        flex-direction: row;
        padding: 0;
        overflow: hidden;
    }
    .auth-left-panel {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
        padding: 48px;
        border-right: 1px solid rgba(255,255,255,0.05);
    }
    .auth-right-panel {
        flex: 1.2;
        padding: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .auth-brand-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 36px;
        color: white;
        margin-bottom: 8px;
        letter-spacing: 2px;
    }
    .auth-brand-desc {
        font-family: 'Space Mono', monospace;
        color: var(--gray);
        font-size: 11px;
        margin-bottom: 32px;
        line-height: 1.6;
    }
    .auth-features {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .auth-feature-item {
        font-family: 'Space Mono', monospace;
        color: #ff3333;
        font-size: 11px;
        font-weight: bold;
    }
    .auth-logo {
        height: 64px;
        margin-bottom: 24px;
        width: fit-content;
    }
    .auth-header {
        margin-bottom: 24px;
    }
}

/* MOBILE FALLBACK FOR DESKTOP CARD */
@media (max-width: 768px) {
    .desktop-auth-card {
        display: flex;
        flex-direction: column;
        max-width: 420px;
        padding: 0;
        overflow: hidden;
    }
    .auth-left-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(5,5,5,1) 100%);
        padding: 32px 24px 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .auth-brand-desc, .auth-features {
        display: none; /* Hide extra branding on mobile */
    }
    .auth-brand-title {
        display: none;
    }
    .auth-right-panel {
        padding: 32px 24px;
    }
    .auth-logo {
        height: 48px;
        margin-bottom: 0;
    }
}
