/* Shared split-screen auth layout (customer login/signup, admin login) */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.auth-split-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background: #fff;
    min-height: 100vh;
}

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ---- LEFT: dark hero ---- */
.auth-hero {
    position: relative;
    background: var(--dark-section-bg, #151515);
    background-image:
        radial-gradient(900px 420px at 92% 8%, rgba(var(--bp-primary-rgb, 236, 72, 153), 0.18), transparent 60%),
        radial-gradient(700px 380px at 8% 95%, rgba(247, 37, 133, 0.10), transparent 65%);
    color: #fff;
    padding: 40px 56px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.auth-hero-brand {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}
.auth-hero-brand:hover { color: #fff; }
.auth-hero-brand img { max-height: 32px; width: auto; display: block; opacity: 0.85; }

.auth-hero-body { max-width: 480px; }
.auth-hero-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}
.auth-hero h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: #fff;
}
.auth-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--accent-grad-start, #ff6ec7), var(--accent-grad-end, #a855f7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: brightness(1.1) saturate(1.05);
}
.auth-hero .lede {
    font-size: 15.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.66);
    margin: 0 0 28px;
    max-width: 420px;
}
.auth-hero ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-hero ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
}
.auth-hero ul li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.auth-hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
}
.auth-hero-foot a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.auth-hero-foot a:hover { color: #fff; }

/* ---- RIGHT: white panel ---- */
.auth-panel {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}
.auth-panel-inner { width: 100%; max-width: 440px; }
.auth-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 36px 36px 32px;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.18);
}
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 16px;
}
.auth-back:hover { color: #0f172a; }
.auth-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.auth-card .auth-sub {
    margin: 0 0 24px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.auth-form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.auth-form-grid input[type=text],
.auth-form-grid input[type=email],
.auth-form-grid input[type=tel],
.auth-form-grid input[type=password] {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    background: #eef2ff;
    color: #0f172a;
    width: 100%;
}
.auth-form-grid input:focus {
    outline: none;
    border-color: #ff8e3c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 142, 60, 0.18);
}
.auth-form-grid .check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}
.auth-form-grid .check input { margin-top: 2px; }
.auth-form-grid .check a { color: var(--brand-primary, #ec4899); font-weight: 600; text-decoration: none; }
.auth-form-grid .check a:hover { text-decoration: underline; }
.auth-form-grid .hint { font-size: 12px; color: #94a3b8; font-weight: 500; margin-top: 2px; }

.auth-submit {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--bp-primary, var(--brand-primary, #ec4899));
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    margin-top: 6px;
    font-family: inherit;
}
.auth-submit:hover {
    transform: translateY(-1px);
    /* Brand pink (db setting brand_primary_color), not --accent-2
       which is remapped to the pastel-green CTA hover. */
    background: var(--bp-primary, var(--brand-primary, #ec4899));
    color: #fff;
    filter: brightness(.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.auth-foot {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}
.auth-foot a { color: var(--brand-primary, #ec4899); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-alert {
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13.5px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

@media (max-width: 960px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-hero { min-height: 320px; padding: 32px 28px 28px; }
    .auth-hero h1 { font-size: 30px; }
    .auth-hero .lede { font-size: 14.5px; }
    .auth-panel { padding: 32px 16px 48px; }
}
@media (max-width: 480px) {
    .auth-hero { padding: 24px 22px; }
    .auth-card { padding: 28px 22px 24px; border-radius: 14px; }
    .auth-card h2 { font-size: 22px; }
}
