/* Sign in (/login/) and sign up (/register/): one modern two-panel layout (owner, 2026-12-03).
   Left: the Socialify brand panel (users/_auth_brand.html). Right: the form card. Phones: a short brand header, then the card.
   Templates: users/login.html, users/register.html; social buttons: users/_auth_social.html. Light page, rainbow brand, no dark backgrounds. */
.sfa { --ink: #1c1f2b; --soft: #5b6478; --line: #d5dae6; --brand: linear-gradient(120deg, #2f6bff, #7b5cff 55%, #c44ee6);
    --rainbow: linear-gradient(90deg, #2f6bff, #0a8cff, #00b4d0, #12b886, #4fcf3a, #f4b400, #ff7b25, #ff4f6d, #f03e9b, #c44ee6, #7b5cff);
    position: relative; width: min(1180px, calc(100vw - 32px)); margin: 22px auto 48px; flex: none;   /* static/users/auth.js centres it on the screen */
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-radius: 30px; overflow: hidden; background: #fff;
    box-shadow: 0 24px 70px rgba(40, 40, 120, .16), 0 2px 8px rgba(40, 40, 120, .06);
    font-family: Nunito, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); text-align: left; }
.sfa *, .sfa *::before, .sfa *::after { box-sizing: border-box; }
.sfa a { text-decoration: none; }

/* brand panel */
.sfa-brand { position: relative; overflow: hidden; padding: 64px 48px 44px; color: #fff; display: flex; flex-direction: column; justify-content: flex-start;
    background: radial-gradient(700px 420px at 10% 0%, #2f6bff 0%, transparent 60%), radial-gradient(600px 500px at 100% 40%, #c44ee6 0%, transparent 60%),
                radial-gradient(600px 400px at 30% 110%, #12b886 0%, transparent 60%), linear-gradient(135deg, #3a2dbf, #7b3fe0 50%, #d0408f); }
.sfa-brand::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rainbow); }
.sfa-brand::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -180px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); pointer-events: none; }
.sfa-brand > * { position: relative; z-index: 1; }
.sfa-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-weight: 900; font-size: 26px; letter-spacing: -.01em; }
.sfa-logo img { width: 46px; height: 46px; border-radius: 14px; background: #fff; padding: 5px; box-shadow: 0 8px 20px rgba(20, 10, 80, .25); }
.sfa-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0; font-size: 12.5px; font-weight: 900; letter-spacing: .16em;
    text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.sfa-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: #fff; }
.sfa-brand h2 { margin: 12px 0 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.sfa-brand h2 em { display: block; margin-top: 6px; font-family: Fraunces, Georgia, serif; font-weight: 600; font-style: italic; letter-spacing: -.01em; font-size: .78em; }
.sfa-brand .sfa-sub { margin: 16px 0 0; font-size: 17px; line-height: 1.55; font-weight: 700; color: rgba(255, 255, 255, .92); max-width: 30em; }
.sfa-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.sfa-points li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.sfa-points li i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-style: normal; font-size: 19px;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.sfa-pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 28px 0 0; padding: 9px 16px 9px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-size: 14px; font-weight: 800; }
.sfa-pill b { flex: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: #fff; color: #5b3fd6; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; }

/* form side */
.sfa-main { padding: 46px 52px 36px; display: flex; flex-direction: column; justify-content: center; }
.sfa-head { text-align: center; margin-bottom: 24px; }
.sfa-head h1 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.sfa-head p { margin: 6px 0 0; font-size: 15.5px; font-weight: 600; color: var(--soft); }
.sfa-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin: 0 auto 26px; width: 100%; max-width: 360px; border-radius: 999px; background: #f0f2f8; }
.sfa-tabs a { display: block; padding: 10px 0; border-radius: 999px; text-align: center; font-weight: 900; font-size: 15px; color: var(--soft) !important; transition: background .15s, color .15s; }
.sfa-tabs a:hover { color: var(--ink) !important; }
.sfa-tabs a.on { background: #fff; color: var(--ink) !important; box-shadow: 0 4px 12px rgba(40, 40, 120, .12); }
.sfa-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #fdecea; color: #c5221f; font-weight: 700; font-size: 14.5px; text-align: center; }
.sfa-f { margin: 0 0 16px; }
.sfa-f > label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 7px 2px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.sfa-f > label a { font-size: 13.5px; font-weight: 800; color: #4b3cf0 !important; }
.sfa-f > label a:hover { text-decoration: underline; }
.sfa-wrap { position: relative; display: flex; align-items: center; }
.sfa-ico { position: absolute; left: 15px; font-size: 17px; line-height: 1; opacity: .75; pointer-events: none; }
.sfa .sfa-input { width: 100%; height: 54px; padding: 0 16px 0 46px; border: 1.5px solid var(--line); border-radius: 15px; background: #f8f9fd; color: var(--ink);
    font: 600 16px Nunito, "Segoe UI", Roboto, Arial, sans-serif; outline: none; box-shadow: none; transition: border-color .15s, background .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none; }
.sfa .sfa-input::placeholder { color: #a0a7b8; font-weight: 500; }
.sfa .sfa-input:hover { border-color: #b9c0d3; }
.sfa .sfa-input:focus { border-color: #6b5cff; background: #fff; box-shadow: 0 0 0 4px rgba(107, 92, 255, .16); }
.sfa-pw .sfa-input { padding-right: 54px; }
.sfa-eye { position: absolute; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); cursor: pointer; }
.sfa-eye:hover { background: #eef0f7; }
.sfa-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sfa-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin: 8px 0 0; border: 0; border-radius: 999px;
    background: var(--brand); color: #fff; font: 900 17.5px Nunito, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer;
    box-shadow: 0 12px 26px rgba(95, 60, 240, .32); transition: transform .12s, filter .15s; }
.sfa-submit:hover { filter: brightness(1.07); }
.sfa-submit:active { transform: scale(.98); }
.sfa-submit svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sfa-foot { margin: 18px 0 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--soft); }
.sfa-foot a { color: #4b3cf0 !important; font-weight: 900; }
.sfa-foot a:hover { text-decoration: underline; }
.sfa-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-size: 12.5px; font-weight: 900; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; }
.sfa-or::before, .sfa-or::after { content: ""; flex: 1; height: 1px; background: #dfe3ee; }
.sfa-soc { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sfa-soc a { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 14px; border: 1.5px solid #d6dbe6; background: #fff;
    color: var(--ink) !important; font-weight: 800; font-size: 15px; transition: border-color .15s, box-shadow .15s, transform .12s; }
.sfa-soc a:hover { border-color: #b84fe0; box-shadow: 0 6px 16px rgba(184, 79, 224, .16); transform: translateY(-1px); }
.sfa-soc a i { font-size: 18px; width: 20px; text-align: center; }
.sfa .sf-one { max-width: none !important; margin: 12px 0 0 !important; }
.sfa-legal { margin: 18px 0 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #7a8196; }
.sfa-legal a { color: #4b3cf0 !important; font-weight: 700; }

/* sign up: the existing form card (users/register.html .sfr) sits inside the form side */
.sfa .sfr { width: auto !important; margin: 0 !important; padding: 0 !important; }
.sfa .sfr-card { padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
.sfa .sfr-card::before, .sfa .sfr-head .sfr-badge { display: none !important; }
.sfa .sfr-row { grid-template-columns: 1fr; }

@media (min-width: 1100px) { .sfa .sfr-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
    .sfa { grid-template-columns: 1fr; width: calc(100vw - 24px); border-radius: 24px; }
    .sfa-brand { padding: 30px 24px 26px; text-align: center; align-items: center; }
    .sfa-kicker { margin-top: 18px; }
    .sfa-brand h2 { font-size: 30px; }
    .sfa-brand .sfa-sub { font-size: 15.5px; }
    .sfa-points { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; text-align: left; }
    .sfa-points li { font-size: 13.5px; gap: 10px; }
    .sfa-points li i { width: 34px; height: 34px; font-size: 16px; border-radius: 11px; }
    .sfa-pill { align-self: center; margin-top: 18px; font-size: 13px; }
    .sfa-main { padding: 28px 20px 26px; }
    .sfa-head h1 { font-size: 26px; }
}
@media (max-width: 520px) {
    .sfa { margin-top: 64px; }
    .sfa-brand { padding: 24px 18px 22px; }
    .sfa-logo { font-size: 22px; } .sfa-logo img { width: 38px; height: 38px; border-radius: 12px; }
    .sfa-kicker { margin-top: 14px; font-size: 11px; }
    .sfa-brand h2 { font-size: 27px; }
    .sfa-brand .sfa-sub, .sfa-pill { display: none; }
    .sfa-points { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .sfa-points li { font-size: 12.5px; gap: 8px; line-height: 1.25; }
    .sfa-points li i { width: 30px; height: 30px; font-size: 14px; border-radius: 10px; }
    .sfa-soc { grid-template-columns: 1fr 1fr; }
}
