/* =============================================================================
   Mẫu đăng nhập 4 — Thương hiệu: chia đôi, nền chàm bên trái, form sáng bên phải. Prefix sp-
   ============================================================================= */

.au-t4 {
    --au-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --au-bg: #fff;
    --au-ink: #0f172a;
    --au-muted: #64748b;
    --au-label: #334155;
    --au-soft: #f5f7fb;

    --au-input-bg: #f8fafc;
    --au-input-border: #e5e9f2;
    --au-input-border-hover: #cdd5e3;
    --au-input-focus: #4f46e5;
    --au-autofill: #eef2ff;
    --au-ring: rgba(79, 70, 229, .14);
    --au-radius: 12px;

    --au-primary: #4f46e5;
    --au-btn-bg: linear-gradient(180deg, #5b52f0, #4338ca);
    --au-btn-shadow: 0 12px 24px -12px rgba(67, 56, 202, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
    --au-link: #4f46e5;
}
.au-t4 .au-input:focus { background: #fff; }

/* Tab gạch chân thay cho dạng viên thuốc */
.au-t4 .au-tabs {
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #e5e9f2;
    border-radius: 0;
    background: none;
}
.au-t4 .au-tabs__item {
    position: relative;
    height: 46px;
    border-radius: 0;
}
.au-t4 .au-tabs__item.is-active {
    background: none;
    box-shadow: none;
    color: #4f46e5;
}
.au-t4 .au-tabs__item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: #4f46e5;
}

.sp-layout {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Cột thương hiệu ---------- */
.sp-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 36px clamp(32px, 5vw, 72px) 40px;
    background:
        radial-gradient(120% 80% at 0% 0%, #6366f1 0%, transparent 60%),
        radial-gradient(90% 70% at 100% 100%, #9333ea 0%, transparent 55%),
        #3730a3;
    color: #fff;
}
.sp-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: .55;
    -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 55%, transparent 90%);
    mask-image: linear-gradient(160deg, transparent 20%, #000 55%, transparent 90%);
}
.sp-aside > * { position: relative; z-index: 1; }
.sp-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sp-deco span {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}
.sp-deco span:nth-child(1) { top: -180px; right: -220px; width: 560px; height: 560px; }
.sp-deco span:nth-child(2) { top: -90px; right: -120px; width: 360px; height: 360px; }
.sp-deco span:nth-child(3) {
    right: 12%;
    bottom: 22%;
    width: 120px;
    height: 120px;
    border: 0;
    background: radial-gradient(circle, rgba(253, 230, 138, .35), transparent 70%);
}

.sp-aside .au-brand { color: #fff; }
.sp-aside .au-brand__mark { background: #fff; color: #4338ca; }
.sp-aside .au-brand__logo { padding: 6px 10px; border-radius: 10px; background: #fff; }

.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 6px 13px 6px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12.5px;
    font-weight: 600;
}
.sp-eyebrow svg { width: 15px; height: 15px; color: #fde68a; }
.sp-headline {
    margin: 0 0 32px;
    font-size: clamp(30px, 3.3vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
}
.sp-headline span {
    white-space: nowrap;
    background: linear-gradient(90deg, #fde68a, #fca5a5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sp-points {
    display: grid;
    gap: 18px;
    max-width: 430px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sp-points li { display: flex; align-items: flex-start; gap: 14px; }
.sp-points__ic {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
}
.sp-points__ic svg { width: 20px; height: 20px; }
.sp-points div b { display: block; font-size: 15px; font-weight: 700; }
.sp-points div span { display: block; margin-top: 2px; color: rgba(255, 255, 255, .72); font-size: 13.5px; }

.sp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .2);
}
.sp-stats div { display: flex; flex-direction: column-reverse; }
.sp-stats dt { color: rgba(255, 255, 255, .7); font-size: 12.5px; }
.sp-stats dd { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Cột form ---------- */
.sp-main {
    display: flex;
    flex-direction: column;
    padding: 24px clamp(20px, 5vw, 64px);
}
.sp-main__top { display: flex; justify-content: flex-end; }
.sp-main__top .lang-picker-row { width: auto; }
.sp-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 0;
}
.sp-title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.sp-sub { margin: 8px 0 22px; color: var(--au-muted); }
.sp-panel .au-tabs { margin-bottom: 24px; }
.sp-legal { margin: 0; color: #94a3b8; font-size: 12.5px; text-align: center; }

@media (max-width: 991px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-aside { gap: 18px; padding: 20px 20px 24px; }
    .sp-eyebrow { margin-bottom: 10px; }
    .sp-headline { margin: 0; font-size: 24px; }
    .sp-points { display: none; }
    .sp-stats { padding-top: 14px; }
    .sp-stats dd { font-size: 20px; }
    .sp-main { padding: 16px 20px 24px; }
    .sp-panel { padding: 4px 0 28px; }
    .sp-title { font-size: 26px; }
}

/* ---------- Chân trang thương hiệu: vạch mảnh trên nền trắng ---------- */
.au-t4 .auth-footer__inner {
    margin-top: 12px;
    padding: 14px 0 0;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}
.au-t4 .auth-footer__links a { color: #4f46e5; }
