/* =====================================================================
   SendSale — Authentication screens (login, register, password, 2FA)
   Clean split-screen, consistent with the marketing site + app.
   ===================================================================== */

:root {
    --ss-primary: #2563EB;
    --ss-primary-700: #1D4ED8;
    --ss-primary-50: #EFF6FF;
    --ss-indigo: #4F46E5;
    --ss-revenue: #059669;
    --ss-ink: #0F172A;
    --ss-body: #475569;
    --ss-muted: #64748B;
    --ss-faint: #94A3B8;
    --ss-surface: #F8FAFC;
    --ss-border: #E2E8F0;
    --ss-danger: #DC2626;
    --ss-radius: 14px;
    --ss-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body.ss-auth {
    font-family: var(--ss-font);
    margin: 0;
    color: var(--ss-body);
    background: var(--ss-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ss-auth h1, .ss-auth h2, .ss-auth h3, .ss-auth h4, .ss-auth h5 {
    font-family: var(--ss-font);
    color: var(--ss-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ss-auth a { color: var(--ss-primary); text-decoration: none; }
.ss-auth a:hover { color: var(--ss-primary-700); }

/* ---------- Split layout ---------- */
.ss-auth-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* Left brand panel */
.ss-auth-aside {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(120% 120% at 0% 0%, var(--ss-indigo) 0%, var(--ss-primary) 45%, #1b2a52 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.75rem;
}
.ss-auth-aside::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .10) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
    mask-image: radial-gradient(circle at 30% 20%, #000, transparent 75%);
}
.ss-auth-aside > * { position: relative; z-index: 1; }
.ss-auth-aside-logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.ss-auth-aside-logo span { color: #bfdbfe; }
.ss-auth-aside-headline { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: #fff; line-height: 1.12; margin: 0 0 1rem; }
.ss-auth-aside-headline .grad { background: linear-gradient(100deg, #bfdbfe, #6ee7b7); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ss-auth-aside-sub { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 30ch; }
.ss-auth-points { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.ss-auth-points li { display: flex; align-items: center; gap: .65rem; margin-bottom: .8rem; color: rgba(255, 255, 255, .92); font-weight: 500; }
.ss-auth-points .material-symbols-rounded { font-size: 22px; color: #6ee7b7; }
.ss-auth-quote { border-left: 3px solid rgba(255, 255, 255, .35); padding-left: 1rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.ss-auth-quote b { color: #fff; display: block; margin-top: .5rem; font-weight: 600; }

/* Right form panel */
.ss-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--ss-surface);
}
.ss-auth-card-wrap { width: 100%; max-width: 420px; }
/* The full registration form has many fields — give it the full width of the panel */
.ss-auth-register .ss-auth-card-wrap { max-width: 720px; }
.ss-auth-register .ss-auth-main { padding: 2.5rem 2rem; }
.ss-auth-logo { display: block; text-align: center; margin-bottom: 1.75rem; }
.ss-auth-logo img { height: 34px; }

.ss-auth-card {
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .12);
    padding: 2rem;
}
.ss-auth-card h1, .ss-auth-card h4 { font-size: 1.5rem; margin: 0 0 .35rem; }
.ss-auth-title { font-size: 1.5rem; font-weight: 700; color: var(--ss-ink); margin: 0 0 .35rem; }
.ss-auth-subtitle { color: var(--ss-muted); font-size: .95rem; margin: 0 0 1.5rem; }

.ss-auth-foot { text-align: center; color: var(--ss-faint); font-size: .82rem; margin-top: 1.5rem; }
.ss-auth-switch { text-align: center; margin-top: 1.25rem; color: var(--ss-muted); font-size: .92rem; }
.ss-auth-switch a { font-weight: 600; }

/* ---------- Form controls (override Bootstrap to SendSale look) ---------- */
.ss-auth .form-group { margin-bottom: 1.1rem; position: relative; }
.ss-auth label { font-weight: 600; font-size: .85rem; color: var(--ss-ink); margin-bottom: .4rem; display: inline-block; }
.ss-auth .form-control {
    width: 100%;
    border: 1.5px solid var(--ss-border);
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .95rem;
    color: var(--ss-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    line-height: 1.4;
    height: auto;
}
.ss-auth .form-control::placeholder { color: var(--ss-faint); }
.ss-auth .form-control:focus {
    outline: none;
    border-color: var(--ss-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
/* Hide the old absolute-positioned icomoon feedback icons */
.ss-auth .form-control-feedback { display: none !important; }
.ss-auth .has-error .form-control { border-color: var(--ss-danger); }
.ss-auth .help-block { display: block; color: var(--ss-danger); font-size: .82rem; margin-top: .35rem; }
.ss-auth .help-block strong { font-weight: 500; }

/* Checkbox row */
.ss-auth .login-options { margin: .25rem 0 1.1rem; }
.ss-auth .checkbox-inline { font-size: .9rem; color: var(--ss-body); }
.ss-auth input[type="checkbox"] { accent-color: var(--ss-primary); width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.ss-auth .btn {
    font-family: var(--ss-font);
    font-weight: 600;
    border-radius: 10px;
    padding: .75rem 1.25rem;
    border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    cursor: pointer;
    font-size: .95rem;
}
.ss-auth .btn-primary,
.ss-auth .login-button {
    background: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .5);
}
.ss-auth .btn-primary:hover,
.ss-auth .login-button:hover {
    background: var(--ss-primary-700);
    border-color: var(--ss-primary-700);
    color: #fff;
    transform: translateY(-1px);
}
.ss-auth .btn-secondary {
    background: var(--ss-primary);
    border-color: var(--ss-primary);
    color: #fff;
}
.ss-auth .btn-secondary:hover { background: var(--ss-primary-700); color: #fff; }
.ss-auth .btn-light, .ss-auth .btn-default {
    background: #fff;
    border-color: var(--ss-border);
    color: var(--ss-ink);
}
.ss-auth .btn-light:hover, .ss-auth .btn-default:hover { background: var(--ss-surface); border-color: var(--ss-faint); color: var(--ss-ink); }
.ss-auth .btn-block, .ss-auth .login-button { width: 100%; }

/* OAuth buttons */
.ss-auth .socialite_buttons { margin-top: .9rem; }
.ss-auth .socialite_buttons .btn { width: 100%; border: 1.5px solid var(--ss-border); background: #fff; color: var(--ss-ink); }
.ss-auth .socialite_buttons .btn:hover { background: var(--ss-surface); }

/* Divider with "or" */
.ss-auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--ss-faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ss-auth-divider::before, .ss-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--ss-border); }

/* Alerts */
.ss-auth .alert { border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; margin-bottom: 1rem; border: 1px solid transparent; }
.ss-auth .alert-success { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.ss-auth .alert-danger { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.ss-auth .alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.ss-auth .alert-info { background: var(--ss-primary-50); color: #1E40AF; border-color: #BFDBFE; }

/* reCAPTCHA spacing */
.ss-auth .recaptcha-box { margin: 0 0 1.1rem; display: flex; justify-content: center; }

/* Material symbols sizing inside buttons */
.ss-auth .btn .material-symbols-rounded { font-size: 20px; vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .ss-auth-grid { grid-template-columns: 1fr; }
    .ss-auth-aside { display: none; }
    .ss-auth-main { min-height: 100vh; }
}
