/* ============================================
   AUTH PAGES — UNIFIED GLASS CARD
   One big card, two internal sections, no split
   ============================================ */

/* ── Page Background — Rich Purple/Cyan/Navy ── */
.auth-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(91, 46, 255, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 75%, rgba(0, 245, 255, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 85%, rgba(43, 108, 255, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(109, 59, 255, 0.06) 0%, transparent 60%),
        linear-gradient(155deg, #050816 0%, #070B1F 30%, #0d1035 55%, #090d28 80%, #050816 100%);
}

/* ── The Unified Card ──────────────────────── */
.auth-card {
    display: flex;
    width: 85%;
    max-width: 1150px;
    min-height: 580px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;

    /* Glass effect on the card itself */
    background: rgba(10, 12, 35, 0.60);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.55),
        0 8px 32px rgba(0, 0, 0, 0.30),
        0 0 80px rgba(91, 46, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Rich internal gradient overlay — purple left, navy right */
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(108deg,
            rgba(91, 46, 255, 0.35) 0%,
            rgba(60, 30, 160, 0.25) 25%,
            rgba(30, 27, 75, 0.15) 44%,
            rgba(12, 14, 36, 0.02) 56%,
            transparent 100%),
        radial-gradient(ellipse at 10% 90%, rgba(0, 212, 255, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 95% 15%, rgba(43, 108, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
    border-radius: 28px;
}

/* Ambient glow spots inside card */
.auth-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 75%, rgba(0, 245, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 25%, rgba(109, 59, 255, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: 28px;
}

/* ── LEFT PANEL — Info / Branding ───────────── */
.auth-branding-panel {
    flex: 0 0 44%;
    padding: 56px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;

    /* No own background/border — the card handles it */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Remove old ::before on branding panel */
.auth-branding-panel::before {
    content: none;
}

/* Glowing divider line — right edge of left panel */
.auth-branding-panel::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 0;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(103, 232, 249, 0.12) 15%,
            rgba(109, 59, 255, 0.20) 40%,
            rgba(0, 212, 255, 0.22) 60%,
            rgba(109, 59, 255, 0.15) 80%,
            transparent 100%);
    box-shadow:
        0 0 8px rgba(0, 212, 255, 0.15),
        0 0 20px rgba(109, 59, 255, 0.06);
    z-index: 2;
    pointer-events: none;
}

.auth-branding-content {
    max-width: 340px;
    position: relative;
    z-index: 1;
}

/* Logo */
.auth-logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-logo-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Tagline */
.auth-tagline {
    font-size: 18px;
    line-height: 1.65;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 400;
}

/* Feature List */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
}

.auth-feature-item .checkmark {
    color: #67E8F9;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── RIGHT PANEL — Form ────────────────────── */
.auth-form-panel {
    flex: 1;
    padding: 56px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;

    /* Transparent — inherits the card's unified glass */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Ambient glow behind the form */
.auth-form-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background:
        radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 60% 30%, rgba(109, 59, 255, 0.05) 0%, transparent 50%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Form Container */
.auth-form-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* ── Form Header ───────────────────────────── */
.auth-form-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #EAF0FF;
}

.auth-form-subtitle {
    color: rgba(234, 240, 255, 0.55);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Form Elements ─────────────────────────── */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(234, 240, 255, 0.75);
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* Inputs & Selects */
.auth-form-input,
.auth-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #EAF0FF;
    font-size: 14px;
    transition: all 0.25s ease;
    font-family: inherit;
    outline: none;
}

.auth-form-input:focus,
.auth-form-select:focus {
    border-color: rgba(103, 232, 249, 0.50);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.10),
        0 0 20px rgba(103, 232, 249, 0.06);
}

.auth-form-input::placeholder {
    color: rgba(156, 163, 175, 0.40);
}

/* Select dropdown */
.auth-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367E8F9' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-form-select option {
    background: #0f1230;
    color: #EAF0FF;
}

/* ── Submit Button — Gradient Pill ─────────── */
.auth-submit-btn {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 50%, #2563EB 100%);
    border: none;
    border-radius: 50px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(124, 58, 237, 0.35),
        0 0 40px rgba(124, 58, 237, 0.12);
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.auth-submit-btn:hover {
    box-shadow:
        0 6px 28px rgba(124, 58, 237, 0.50),
        0 0 50px rgba(103, 232, 249, 0.10);
    transform: translateY(-1px);
}

.auth-submit-btn:hover::before {
    opacity: 1;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ── Footer Link ───────────────────────────── */
.auth-footer-text {
    text-align: center;
    color: rgba(234, 240, 255, 0.50);
    font-size: 13px;
}

.auth-footer-link {
    color: #67E8F9;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: #A78BFA;
    text-decoration: underline;
}

/* ── Alert Messages ────────────────────────── */
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    display: none;
}

.auth-alert.show {
    display: block;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

/* ── Responsive ────────────────────────────── */

/* Smaller desktops */
@media (max-width: 1100px) {
    .auth-card {
        width: 92%;
    }

    .auth-branding-panel {
        padding: 48px 36px;
    }

    .auth-form-panel {
        padding: 48px 36px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .auth-card {
        width: 96%;
    }

    .auth-branding-panel {
        flex: 0 0 40%;
        padding: 40px 28px;
    }

    .auth-form-panel {
        padding: 40px 28px;
    }
}

/* Mobile — single column stack, still one card */
@media (max-width: 768px) {
    .auth-page-container {
        padding: 20px 12px;
        align-items: flex-start;
    }

    .auth-card {
        flex-direction: column;
        width: 100%;
        max-width: 480px;
        min-height: auto;
        margin: 0 auto;
    }

    .auth-branding-panel {
        flex: none;
        padding: 32px 28px 24px;
    }

    .auth-form-panel {
        padding: 24px 28px 32px;
    }

    .auth-branding-content {
        max-width: 100%;
    }

    .auth-form-container {
        max-width: 100%;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .auth-page-container {
        padding: 12px 8px;
    }

    .auth-branding-panel {
        padding: 24px 20px 20px;
    }

    .auth-form-panel {
        padding: 20px 20px 28px;
    }
}

/* ── Remove FAB on Auth Pages ──────────────── */
body.auth-page .settings-fab,
body.auth-page .ai-bot-fab {
    display: none !important;
}