/* ============================================================
   Auth Pages (Login / Signup) — Classy Light Theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-blue: #1a56db;
    --brand-indigo: #4338ca;
    --brand-teal: #0891b2;
    --brand-gradient: linear-gradient(135deg, #1a56db 0%, #4338ca 50%, #7c3aed 100%);
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.7);
    --input-border: #e2e8f0;
    --input-focus: #1a56db;
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --surface: #f8fafc;
    --shadow-xl: 0 25px 60px rgba(26,86,219,0.12), 0 8px 24px rgba(0,0,0,0.06);
    --radius-xl: 24px;
    --radius-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.auth-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--surface);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Split layout ---- */
.auth-wrap {
    display: flex;
    min-height: 100vh;
}

/* Left panel */
.auth-panel-left {
    display: none;
    flex: 0 0 42%;
    background: var(--brand-gradient);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .auth-panel-left { display: flex; flex-direction: column; justify-content: center; padding: 3.5rem; }
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?auto=format&fit=crop&w=800&q=50') center/cover no-repeat;
    opacity: 0.12;
}

.auth-panel-left::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    bottom: -100px; right: -100px;
}

.auth-left-inner { position: relative; z-index: 2; }

.auth-logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.auth-logo-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(6px);
}

.auth-left-headline {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.auth-left-headline span { opacity: .75; }

.auth-left-sub {
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 360px;
}

.auth-pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }

.auth-pill-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
    font-weight: 500;
}

.auth-pill-list li i {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* Right panel */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .auth-panel-right { padding: 3rem 4rem; }
}

.auth-card {
    width: 100%;
    max-width: 440px;
    animation: authFadeUp 0.45s cubic-bezier(.22,.68,0,1.2) both;
}

.auth-card-wide {
    max-width: 520px;
}

.d-none {
    display: none !important;
}

.me-2 {
    margin-right: 0.5rem;
}

.auth-form-horizontal .form-label {
    margin-bottom: 0;
    padding-top: 0.15rem;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.auth-field-row-last {
    margin-bottom: 1.5rem;
}

.auth-field-label {
    display: flex;
    align-items: center;
}

.auth-field-input {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .auth-form-horizontal .form-label {
        margin-bottom: 0.35rem;
        padding-top: 0;
    }

    .auth-field-row {
        grid-template-columns: 1fr;
        row-gap: 0.35rem;
    }

    .auth-field-row-last {
        margin-bottom: 1.25rem;
    }
}

.coming-soon-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-blue);
    background: rgba(26, 86, 219, 0.1);
    padding: 0.45rem 1rem;
    border-radius: 999px;
}

.auth-coming-panel {
    padding: 0.5rem 0 0.5rem;
}

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile logo */
.auth-mobile-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.auth-mobile-logo .auth-logo-icon {
    background: var(--brand-gradient);
    color: #fff;
}

.auth-mobile-logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

@media (min-width: 1024px) {
    .auth-mobile-logo { display: none; }
}

/* Heading */
.auth-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: .35rem;
}

.auth-sub {
    color: var(--text-mid);
    font-size: .95rem;
    margin-bottom: 2rem;
}

/* Form */
.auth-form .form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--text-dark);
    margin-bottom: .4rem;
}

.auth-form .form-control {
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    font-size: .95rem;
    color: var(--text-dark);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}

.auth-form .form-control::placeholder { color: var(--text-light); }

.auth-form .form-control:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
    background: #fff;
    outline: none;
}

.auth-form .input-group-text {
    background: var(--surface);
    border: 1.5px solid var(--input-border);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-mid);
    cursor: pointer;
    transition: color .2s;
}

.auth-form .input-group-text:hover { color: var(--brand-blue); }

.auth-form .input-group .form-control {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* Submit button */
.auth-btn {
    background: var(--brand-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: .8rem 1.5rem;
    width: 100%;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.auth-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .2s;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26,86,219,.3);
}

.auth-btn:hover::after { background: rgba(255,255,255,.06); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span { font-size: .8rem; color: var(--text-light); font-weight: 500; white-space: nowrap; }

/* Footer links */
.auth-footer-link {
    text-align: center;
    font-size: .875rem;
    color: var(--text-mid);
    margin-top: 1.5rem;
}

.auth-footer-link a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}

.auth-footer-link a:hover { opacity: .75; }

/* Alerts */
.auth-alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
}

.auth-alert:empty {
    display: none;
}

.auth-alert.danger { background: #fef2f2; color: #b91c1c; }
.auth-alert.success { background: #f0fdf4; color: #166534; }

/* Password strength */
.pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    margin-top: .5rem;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width .3s, background .3s;
}

.pw-strength-label {
    font-size: .75rem;
    font-weight: 600;
    margin-top: .3rem;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid rgba(255, 255, 255, 0.35);
    border-right-color: #fff;
    border-radius: 50%;
    animation: authSpinner .75s linear infinite;
    vertical-align: -0.125em;
}

.spinner-border-sm {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 0.14em;
}

@keyframes authSpinner {
    to { transform: rotate(360deg); }
}
