/* ── Auth Screen Styles ──────────────────────────────────── */
#login-screen {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0f172a 100%);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.auth-card::-webkit-scrollbar {
    display: none;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* Landing choice buttons */
.auth-choice-btn {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-choice-btn:hover {
    transform: translateY(-2px);
}

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

.auth-btn-create {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.auth-btn-create:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.auth-btn-login {
    background: #059669;
    color: #fff;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

.auth-btn-login:hover {
    background: #047857;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45);
}

.auth-btn-join {
    background: transparent;
    color: #1e40af;
    border: 2px solid #3b82f6;
    box-shadow: none;
}

.auth-btn-join:hover {
    background: #eff6ff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

/* Form inputs */
.auth-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    color: #0f172a;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Submit buttons */
.auth-submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.auth-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.auth-submit-btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.auth-submit-btn:not(:disabled):active {
    transform: scale(0.98);
}

.auth-submit-blue {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.auth-submit-blue:not(:disabled):hover {
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.auth-submit-green {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.auth-submit-green:not(:disabled):hover {
    background: #047857;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

.auth-submit-login {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.auth-submit-login:hover {
    background: #047857;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
}

/* Back link */
.auth-back-link {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #475569;
}

/* Section divider label */
.auth-section-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

/* Success message */
.auth-success-msg {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.auth-success-msg p {
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* Error message */
#auth-error-msg {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    min-height: 18px;
}

/* Optional badge */
.auth-optional-badge {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 7px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

@media (max-width: 520px) {
    .auth-card {
        border-radius: 0;
        max-height: 100vh;
    }

    #login-screen {
        align-items: flex-start;
    }

    .auth-input-row {
        grid-template-columns: 1fr;
    }
}
