/* ── Reset auth body ─────────────────────────────────── */
body.auth-body {
    background: #fff !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #0F172A;
}

/* ── Split layout ───────────────────────────────────── */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 100vh;
}

/* ── LEFT: form ─────────────────────────────────────── */
.auth-left {
    display: flex;
    flex-direction: column;
    padding: 36px 60px;
    background: #fff;
}
.auth-left-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 600;
}
.auth-brand-icon {
    width: 36px; height: 36px;
    background: #2563eb;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
}
.auth-brand-text { letter-spacing: -.02em; }
.auth-brand-text strong { font-weight: 800; }

.auth-form-wrap {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 60px;
}

.auth-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0B1220;
    margin: 0 0 28px;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: .85rem; font-weight: 500; color: #475569; }

.auth-input {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: .95rem;
    width: 100%;
    background: #fff;
    color: #0f172a;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input::placeholder { color: #94a3b8; }
.auth-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 50px; }
.auth-eye {
    position: absolute;
    top: 50%; right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}
.auth-eye:hover { color: #475569; }

/* Toggle row */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 4px;
}

.auth-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.auth-switch input { position: absolute; opacity: 0; pointer-events: none; }
.auth-switch-track {
    width: 38px; height: 22px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    display: inline-block;
    transition: background .2s;
}
.auth-switch-thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .2s;
}
.auth-switch input:checked + .auth-switch-track { background: #22c55e; }
.auth-switch input:checked + .auth-switch-track .auth-switch-thumb { transform: translateX(16px); }
.auth-switch-label { font-size: .9rem; color: #475569; }

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-size: .9rem;
}
.auth-link:hover { text-decoration: underline; }
.auth-link-strong { color: #2563eb; font-weight: 600; text-decoration: none; }
.auth-link-strong:hover { text-decoration: underline; }

.auth-submit {
    width: 100%;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
    margin-top: 8px;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
    letter-spacing: -.005em;
}
.auth-submit:hover  { background: #1d4ed8; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .7); }
.auth-submit:active { transform: translateY(1px); }

.auth-footer-text {
    font-size: .9rem;
    color: #475569;
    margin: 16px 0 0;
}

.auth-test-creds {
    margin-top: 32px;
    padding: 14px 16px;
    background: #F5F7FB;
    border: 1px solid #E5E9F0;
    border-radius: 10px;
    color: #64748B;
    font-size: .82rem;
}
.auth-test-creds strong { color: #0F172A; font-weight: 600; }

.auth-powered {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748B;
    font-size: .82rem;
}
.auth-powered-text { font-weight: 500; }
.auth-powered-logo { height: 22px; width: auto; opacity: .9; }

/* ── RIGHT: marketing ───────────────────────────────── */
.auth-right {
    position: relative;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(79, 125, 245, .35) 0%, transparent 55%),
        radial-gradient(80%  60% at 0%   100%, rgba(37, 99, 235, .25) 0%, transparent 55%),
        linear-gradient(135deg, #0B1220 0%, #111C36 50%, #c2d019 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.auth-right-socials {
    position: absolute;
    top: 28px; right: 32px;
    display: flex;
    gap: 14px;
}
.auth-right-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background .2s, transform .15s;
}
.auth-right-socials a:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
}

.auth-right-content {
    margin-top: 0;
    max-width: 640px;
}
.auth-right-eyebrow {
    color: #4ade80;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: .01em;
}
.auth-right-headline {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 28px;
    letter-spacing: -.025em;
    color: #fff;
    -webkit-text-fill-color: #fff;
}
.auth-right-headline .grad-pink,
.auth-right-headline .grad-violet,
.auth-right-headline .grad-purple { -webkit-text-fill-color: transparent; }
.grad-pink   { background: linear-gradient(90deg, #60A5FA, #93C5FD); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-violet { background: linear-gradient(90deg, #4F7DF5, #60A5FA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-purple { background: linear-gradient(90deg, #7C8FFF, #A5B4FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.auth-right-cta {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    transition: background .15s, transform .15s;
}
.auth-right-cta:hover { background: #1d4ed8; transform: translateY(-2px); color: #fff; }

/* ── Mock visuals ───────────────────────────────────── */
.auth-right-mock {
    margin-top: 24px;
    position: relative;
    height: 340px;
}
.mock-window {
    position: absolute;
    bottom: 0; left: 0;
    width: 78%;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,.4);
    overflow: hidden;
    transform: rotate(-1deg);
}
.mock-window-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mock-dot {
    width: 9px; height: 9px;
    background: #cbd5e1;
    border-radius: 50%;
}
.mock-dot:first-child { background: #ef4444; }
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #22c55e; }
.mock-window-title {
    margin-left: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mock-window-title i { color: #2563eb; }
.mock-window-body { padding: 16px; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 12px; }
.mock-stat {
    background: linear-gradient(135deg,#dbeafe,#ede9fe);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
.mock-stat-value { font-size: 1.2rem; font-weight: 800; color: #1e3a8a; }
.mock-stat-label { font-size: .65rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.mock-rows { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    font-size: .7rem;
}
.mock-row span:first-child {
    width: 22px; height: 22px;
    background: #e2e8f0;
    border-radius: 50%;
    flex-shrink: 0;
}
.mock-row span:nth-child(2) {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
}
.badge-success { background: #dcfce7; color: #166534; padding: 3px 8px; border-radius: 999px; font-size: .65rem; font-weight: 600; }
.badge-info    { background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 999px; font-size: .65rem; font-weight: 600; }
.badge-warning { background: #fef3c7; color: #92400e; padding: 3px 8px; border-radius: 999px; font-size: .65rem; font-weight: 600; }

/* Chat mock */
.mock-chat {
    position: absolute;
    bottom: 12px; right: 0;
    width: 230px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
    overflow: hidden;
    transform: rotate(3deg);
}
.mock-chat-header {
    background: #2563eb;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mock-chat-avatar {
    width: 30px; height: 30px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
}
.mock-chat-name { font-weight: 700; font-size: .8rem; line-height: 1.1; }
.mock-chat-status { font-size: .65rem; opacity: .85; }
.mock-chat-body {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f0f2f5;
    min-height: 130px;
}
.mock-bubble {
    max-width: 80%;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: .7rem;
    line-height: 1.3;
    color: #1e293b;
}
.mock-bubble.bot {
    background: #fff;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
.mock-bubble.user {
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-right { display: none; }
    .auth-left { padding: 32px 24px; }
}
