/* ========================================
   AUTH MODAL - Sign up / Log in
   Matches ELEET dark / neon-green theme
   ======================================== */

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(160deg, rgba(18, 18, 18, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(74, 222, 128, 0.06);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--white-70);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-close:hover {
    border-color: var(--green);
    color: var(--green);
}

.auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.35));
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.2px;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--white-50);
    margin-top: 6px;
    font-weight: 300;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--white-50);
    background: none;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.25s ease;
    letter-spacing: 0.2px;
}

.auth-tab.active {
    background: var(--green);
    color: #050505;
}

/* Google button */
.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #1f1f1f;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12);
}

.auth-google-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white-50);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-50);
}

.auth-field input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--white);
    font-family: var(--font);
    font-size: 0.92rem;
    outline: none;
    transition: 0.2s ease;
}

.auth-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-field-row {
    display: flex;
    justify-content: flex-end;
}

.auth-forgot {
    font-size: 0.75rem;
    color: var(--white-50);
    text-decoration: none;
    transition: 0.2s ease;
}

.auth-forgot:hover {
    color: var(--green);
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px 0;
    border: none;
    border-radius: 50px;
    background: var(--green);
    color: #050505;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(74, 222, 128, 0.25);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--white-50);
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-family: var(--font);
    font-size: 0.82rem;
}

.auth-switch button:hover {
    text-decoration: underline;
}

/* Signup-only field shown/hidden via display */
.auth-field.auth-only-signup {
    display: none;
}

.auth-form.mode-signup .auth-only-signup {
    display: flex;
}

@media (max-width: 480px) {
    .auth-overlay {
        padding: 12px;
    }
    .auth-modal {
        padding: 24px 18px 20px;
        border-radius: 16px;
        max-width: 100%;
    }
    .auth-title {
        font-size: 1.2rem;
    }
    .auth-subtitle {
        font-size: 0.8rem;
    }
    .auth-google-btn,
    .auth-submit {
        font-size: 0.84rem;
        padding-left: 16px;
        padding-right: 16px;
    }
    .auth-field input {
        font-size: 0.88rem;
    }
}
