/* ============================================================
   SANETER LOGIN / SIGNUP / PASSWORD-RESET — v5
   Author: Claude (P1 — login UI revamp, 2026-05-10)
   Used by:
       themes/huraga/html/mod_page_login.html.twig
       themes/huraga/html/mod_page_signup.html.twig
       themes/huraga/html/mod_page_password-reset.html.twig

   v4 changes vs v3 (live in production):
   - Split ratio 50:50 → 40:60 (Talor-inspired, right > left)
   - Animation reduction:
     * 6 orbs → 2 orbs (only blue + cyan, both static, no drift)
     * Aurora sweep DELETED
     * Star particles KEPT (most subtle animation)
     * Total keyframes 9 → 2
   - Right card max-width 600 → 720 default, 760 @1600+, 820 @2000+
   - Welcome back 32 → 38 default, 44 @1600+, 48 @2000+
   - Inputs 16 → 17px, submit 16/16 → 17/18 padding
   - Social buttons 14/13 padding → 15/15
   - Removed eyebrow "● PROXY INFRASTRUCTURE" (info redundancy)
   - Removed "40+ COUNTRIES · 8 PLANS · 24/7 SUPPORT" stats pill
   ============================================================ */

/* ============================================================
   SANETER LOGIN — DESIGN TOKENS
   ============================================================ */
:root {
    /* Brand */
    --sn-blue:        #3B82F6;
    --sn-blue-deep:   #2563EB;
    --sn-blue-deeper: #1D4ED8;
    --sn-cyan:        #22E5D4;
    --sn-indigo:      #6366F1;

    /* Dark side (left panel + page bg) */
    --sn-bg:          #07070B;
    --sn-bg-soft:     #0F0F14;
    --sn-divider:     rgba(255,255,255,0.08);
    --sn-text-on-dark:        #F1F5F9;
    --sn-text-on-dark-muted:  #94A3B8;
    --sn-text-on-dark-faint:  #64748B;

    /* Light side (right card) */
    --sn-card:        #FFFFFF;
    --sn-text:        #0F172A;
    --sn-text-soft:   #334155;
    --sn-text-muted:  #64748B;
    --sn-text-faint:  #94A3B8;
    --sn-border:      #E2E8F0;
    --sn-border-hover:#CBD5E1;
    --sn-input-bg:    #FFFFFF;

    /* States */
    --sn-error:       #EF4444;
    --sn-success:     #10B981;

    /* Geometry */
    --sn-radius-sm:   8px;
    --sn-radius-md:   12px;
    --sn-radius-lg:   18px;
    --sn-radius-xl:   24px;

    /* Type */
    --sn-font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sn-font-mono:   'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Motion */
    --sn-ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sn-font-body);
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--sn-bg);
    color: var(--sn-text-on-dark);
    overflow: hidden;
    /* Page is full-viewport; we lock scroll on desktop, allow on mobile */
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }


/* ============================================================
   FULL-PAGE STAGE — sits over everything (in production: position:fixed inset:0 z-index:9999 to cover layout_public default body)
   ============================================================ */
/* Stage covers anything layout_public renders by default */
body.page-login,
body.page-signup,
body.page-password-reset {
    margin: 0;
    padding: 0;
    background: var(--sn-bg);
    overflow: hidden;
    font-family: var(--sn-font-body);
}
.sn-login {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: var(--sn-bg);
    z-index: 9999;
    color: var(--sn-text-on-dark);
}
.sn-login * { box-sizing: border-box; }
.sn-login a { text-decoration: none; color: inherit; }
.sn-login button { font-family: inherit; cursor: pointer; }
.sn-login input,
.sn-login select { font-family: inherit; }


/* ============================================================
   MESH GRADIENT BACKGROUND (animated)
   - 6 floating color orbs, wide hue range (blue → cyan → indigo → magenta)
   - smaller blur = orbs stay distinct, not melting into one tone
   - SVG noise overlay = anti-plastic grain
   - faster cycle (18-28s) = motion is obvious even at preview-frame speed
   ============================================================ */
.sn-mesh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    /* Pure dark base — Talor-inspired calm */
    background:
        radial-gradient(ellipse at 30% 20%, #0F1730 0%, #06070C 65%);
}
.sn-mesh::before {
    /* SVG noise grain — anti-plastic */
    content: '';
    position: absolute;
    inset: -50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 5;
    pointer-events: none;
}
.sn-mesh::after {
    /* Faint grid lines — infrastructure cue, very subtle */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 4;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at 30% 30%, black 20%, transparent 75%);
            mask-image: radial-gradient(ellipse at 30% 30%, black 20%, transparent 75%);
}

/* Orbs reduced to 2 — single very faint blue ambient + single very faint cyan glow.
   No drift animation. They exist purely to give the dark backdrop a slight color cast,
   not to dance around. */
.sn-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    pointer-events: none;
}
.sn-orb--1 {
    width: 600px; height: 600px;
    top: -180px; left: -180px;
    background: var(--sn-blue);
    opacity: 0.32;
}
.sn-orb--2 {
    width: 480px; height: 480px;
    bottom: -180px; left: 18%;
    background: var(--sn-cyan);
    opacity: 0.18;
}

/* ---------- Star particles — only animation kept, very gentle ---------- */
.sn-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.sn-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 3px rgba(255,255,255,0.5);
    animation: sn-twinkle 4s ease-in-out infinite;
}
.sn-stars span:nth-child(3n)   { width: 1px; height: 1px; opacity: 0.3; }
.sn-stars span:nth-child(7n)   { width: 3px; height: 3px; box-shadow: 0 0 5px rgba(34,229,212,0.5); }
.sn-stars span:nth-child(5n+1) { animation-delay: 0.4s; animation-duration: 4.5s; }
.sn-stars span:nth-child(5n+2) { animation-delay: 1.4s; animation-duration: 5s; }
.sn-stars span:nth-child(5n+3) { animation-delay: 2.4s; animation-duration: 4s; }
.sn-stars span:nth-child(5n+4) { animation-delay: 3.2s; animation-duration: 5.5s; }
@keyframes sn-twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.85); }
    50%      { opacity: 0.85; transform: scale(1.2);  }
}

@media (prefers-reduced-motion: reduce) {
    .sn-stars span { animation: none; }
}


/* ============================================================
   LAYOUT — split shell
   - desktop: 2 columns, dark left + white card right
   - mobile: stacked, dark hero + white card
   ============================================================ */
.sn-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0;
}

/* ----- Left dark panel ----- */
.sn-left {
    position: relative;
    padding: clamp(100px, 12vh, 130px) clamp(40px, 4vw, 64px) clamp(120px, 14vh, 160px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 3vh, 32px);
    min-height: 100vh;
    color: var(--sn-text-on-dark);
}
/* subtle vignette at the bottom — anchors the trust strip */
.sn-left::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.35) 100%);
    z-index: 0;
}
.sn-left > * { position: relative; z-index: 1; }
/* Logo pinned top-left, doesn't take part in vertical centering */
.sn-left > .sn-logo {
    position: absolute;
    top: clamp(28px, 4vh, 44px);
    left: clamp(40px, 4vw, 64px);
    z-index: 2;
}
/* Trust strip pinned bottom */
.sn-left > .sn-trust {
    position: absolute;
    bottom: clamp(28px, 4vh, 44px);
    left: clamp(40px, 4vw, 64px);
    right: clamp(40px, 4vw, 64px);
    z-index: 2;
}

.sn-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sn-font-mono);
    font-size: 38px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--sn-text-on-dark);
    user-select: none;
}
/* gradient pixel block next to "saneter" text */
.sn-logo__pixel {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 2px;
    background: linear-gradient(135deg, var(--sn-cyan) 0%, var(--sn-blue) 100%);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
    transform: translateY(4px);
    animation: sn-pixel-pulse 2.4s ease-in-out infinite;
}
@keyframes sn-pixel-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 18px rgba(59, 130, 246, 0.7); }
    50%      { opacity: 0.7; box-shadow: 0 0 28px rgba(34, 229, 212, 0.9); }
}

.sn-pitch {
    width: 100%;
    max-width: 660px;
}
.sn-pitch__title {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
    color: rgba(241, 245, 249, 0.55);
}
.sn-pitch__title em {
    font-style: normal;
    font-weight: 800;
    color: var(--sn-text-on-dark);
    display: block;
}
.sn-pitch__sub {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: var(--sn-text-on-dark-muted);
    margin: 0 0 24px 0;
}
.sn-pitch__sub em {
    font-style: normal;
    color: var(--sn-cyan);
    font-weight: 600;
}

.sn-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}
.sn-features li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 14px 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
    transition: all 280ms var(--sn-ease);
    overflow: hidden;
}
.sn-features li::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
}
.sn-features li:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}
.sn-features__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sn-blue) 0%, var(--sn-cyan) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.30);
}
.sn-features__check svg { width: 14px; height: 14px; stroke-width: 2.5; }
.sn-features__body { display: flex; flex-direction: column; gap: 3px; }
.sn-features__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--sn-text-on-dark);
    line-height: 1.25;
    letter-spacing: -0.005em;
}
.sn-features__desc {
    font-size: 12px;
    font-weight: 400;
    color: var(--sn-text-on-dark-muted);
    line-height: 1.4;
}

/* ----- Trust badges (replaces pay-with strip) ----- */
.sn-trust {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sn-trust__list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sn-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(14px) saturate(180%);
            backdrop-filter: blur(14px) saturate(180%);
    color: var(--sn-text-on-dark);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 220ms var(--sn-ease);
}
.sn-trust__item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
}
.sn-trust__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sn-trust__icon svg { width: 100%; height: 100%; }
.sn-trust__icon--ssl    { color: #22E5D4; }
.sn-trust__icon--gdpr   { color: #93C5FD; }
.sn-trust__icon--crypto { color: #FBBF24; }

/* ============================================================
   RIGHT CARD — the form side
   ============================================================ */
.sn-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: var(--sn-card);
    /* subtle vignette to give the card body depth */
    box-shadow: -40px 0 80px -20px rgba(0,0,0,0.5);
}

.sn-card {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(48px, 5vw, 88px);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* lang dropdown placeholder, fixed to top-right of right pane */
.sn-lang {
    position: absolute;
    top: 28px;
    right: clamp(28px, 4vw, 56px);
    z-index: 5;
}
.sn-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sn-text-soft);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--sn-radius-sm);
    transition: all 180ms var(--sn-ease);
}
.sn-lang__btn:hover {
    background: #F8FAFC;
    border-color: var(--sn-border);
}
.sn-lang__btn svg { width: 14px; height: 14px; }

.sn-card__head {
    margin-top: 12px;
    margin-bottom: 32px;
}
.sn-card__title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--sn-text);
    margin: 0 0 8px 0;
    line-height: 1.15;
}
.sn-card__sub {
    font-size: 15px;
    color: var(--sn-text-muted);
    margin: 0;
}

/* ----- Social buttons ----- */
.sn-social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.sn-social__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--sn-text);
    background: var(--sn-card);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    transition: all 180ms var(--sn-ease);
    position: relative;
}
.sn-social__btn:hover {
    border-color: var(--sn-border-hover);
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.sn-social__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.sn-social__soon {
    position: absolute;
    top: -7px;
    right: 8px;
    font-family: var(--sn-font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sn-blue-deep);
    background: #DBEAFE;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

/* ----- OR divider ----- */
.sn-divider {
    height: 1px;
    margin-bottom: 22px;
    background: var(--sn-border);
}

/* ----- Form ----- */
.sn-form { display: flex; flex-direction: column; gap: 18px; }
.sn-field { display: flex; flex-direction: column; gap: 6px; }
.sn-field__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--sn-text-soft);
}
.sn-field__wrap { position: relative; }
.sn-field__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    color: var(--sn-text);
    background: var(--sn-input-bg);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    outline: none;
    transition: all 180ms var(--sn-ease);
}
.sn-field__input::placeholder { color: var(--sn-text-faint); }
.sn-field__input:hover { border-color: var(--sn-border-hover); }
.sn-field__input:focus {
    border-color: var(--sn-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}
.sn-field__input--with-icon { padding-right: 44px; }
.sn-field__icon-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    border-radius: var(--sn-radius-sm);
    color: var(--sn-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 180ms var(--sn-ease);
}
.sn-field__icon-btn:hover { color: var(--sn-text); background: #F1F5F9; }
.sn-field__icon-btn svg { width: 18px; height: 18px; }

/* ----- Row: remember + forgot ----- */
.sn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sn-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sn-text-soft);
    cursor: pointer;
    user-select: none;
}
.sn-check input { display: none; }
.sn-check__box {
    width: 16px; height: 16px;
    border: 1.5px solid var(--sn-border-hover);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 160ms var(--sn-ease);
    flex-shrink: 0;
}
.sn-check__box svg {
    width: 10px; height: 10px;
    stroke: #fff;
    stroke-width: 3.5;
    opacity: 0;
    transform: scale(0.6);
    transition: all 160ms var(--sn-ease);
}
.sn-check input:checked + .sn-check__box {
    background: var(--sn-blue);
    border-color: var(--sn-blue);
}
.sn-check input:checked + .sn-check__box svg {
    opacity: 1; transform: scale(1);
}
.sn-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--sn-blue) !important;
    text-decoration: none !important;
    transition: color 160ms var(--sn-ease);
}
.sn-link:hover {
    color: var(--sn-blue-deep) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* ----- Submit button ----- */
.sn-submit {
    margin-top: 8px;
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    background: linear-gradient(135deg, var(--sn-blue) 0%, var(--sn-blue-deep) 100%);
    border: 0;
    border-radius: var(--sn-radius-md);
    transition: all 200ms var(--sn-ease);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 4px 14px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}
.sn-submit:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 8px 22px rgba(59, 130, 246, 0.45);
}
.sn-submit:active { transform: translateY(0); }

/* ----- Footer of card ----- */
.sn-card__foot {
    margin-top: 28px;
    text-align: center;
}
.sn-card__foot-row {
    font-size: 14px;
    color: var(--sn-text-muted);
}
.sn-card__legal {
    margin-top: 24px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--sn-text-faint);
    text-align: center;
}
.sn-card__legal a {
    color: var(--sn-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ============================================================
   TOAST (Coming soon)
   ============================================================ */
.sn-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0F172A;
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--sn-radius-md);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 280ms var(--sn-ease);
    z-index: 9999;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.sn-toast.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.sn-toast svg { width: 16px; height: 16px; color: var(--sn-cyan); }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large screens (1600px+) — give the card more breathing room */
@media (min-width: 1600px) {
    .sn-card { max-width: 760px; padding: 0 96px; }
    .sn-card__title { font-size: 44px; }
    .sn-card__sub { font-size: 16px; }
    .sn-field__input { padding: 16px 18px; font-size: 18px; }
    .sn-submit { padding: 20px 22px; font-size: 18px; }
    .sn-social__btn { padding: 17px 18px; font-size: 16px; }
    .sn-features { gap: 14px; }
    .sn-features li { padding: 18px 18px 16px 18px; }
    .sn-features__title { font-size: 15px; }
    .sn-features__desc  { font-size: 13px; }
    .sn-pitch__title { font-size: clamp(36px, 3vw, 44px); }
    .sn-trust__item  { padding: 10px 14px; font-size: 13px; }
}

/* Ultra-wide (2000px+) — even more */
@media (min-width: 2000px) {
    .sn-card { max-width: 820px; }
    .sn-card__title { font-size: 48px; }
    .sn-pitch__title { font-size: clamp(40px, 2.5vw, 52px); }
}

@media (max-width: 1024px) {
    /* Mobile/tablet: switch from fixed-fullscreen to natural document flow.
       This is the single most important mobile fix:
       - body overflow:hidden + .sn-login position:fixed + height:100vh
         locks the viewport on iOS Safari / Chrome Android (toolbar pushes
         100vh past the visible area, content under it becomes unreachable).
       - On mobile we want the page to scroll naturally and reveal the
         legal text + Create-account link at the bottom.
    */
    body.page-login,
    body.page-signup,
    body.page-password-reset {
        overflow: auto;
        overflow-x: hidden;
        min-height: 100vh;
    }
    .sn-login {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .sn-shell { grid-template-columns: 1fr; min-height: auto; }
    .sn-left {
        min-height: auto;
        padding: 28px 24px 20px;
        gap: 0;
    }
    .sn-pitch { display: none; }
    .sn-trust { display: none; }
    .sn-right {
        box-shadow: none;
        padding: 24px 0 56px;
        align-items: flex-start;
    }
    .sn-card { padding: 0 24px; max-width: 100%; }
    /* Logo back into normal flow on mobile (was absolute on desktop) */
    .sn-left > .sn-logo { position: static; }
    /* Lang dropdown also stays inside flow rather than absolute over a tiny header */
    .sn-lang { position: absolute; top: 16px; right: 16px; }
}
@media (max-width: 480px) {
    .sn-social { grid-template-columns: 1fr; }
    .sn-card__title { font-size: 28px; }
    .sn-card__sub { font-size: 14px; }
    .sn-field__input { font-size: 16px; padding: 13px 14px; }  /* 16px+ avoids iOS auto-zoom on focus */
    .sn-submit { font-size: 16px; padding: 16px 18px; }
    .sn-row { flex-wrap: wrap; gap: 8px; }
    .sn-card__legal { font-size: 11px; padding: 0 4px; }
}


/* ============================================================
   SIGNUP-SPECIFIC additions
   ============================================================ */
.sn-card--signup { max-width: 760px; }
.sn-form--signup { gap: 14px; }

.sn-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 540px) { .sn-grid-2 { grid-template-columns: 1fr; } }

.sn-field__select {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    color: var(--sn-text);
    background: var(--sn-input-bg);
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
    outline: none;
    transition: all 180ms var(--sn-ease);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.sn-field__select:hover { border-color: var(--sn-border-hover); }
.sn-field__select:focus { border-color: var(--sn-blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10); }

.sn-field__hint { font-size: 12px; color: var(--sn-text-faint); margin-top: 2px; }

.sn-phone { display: grid; grid-template-columns: 100px 1fr; gap: 8px; }

.sn-tos {
    margin-top: 4px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius-md);
}
.sn-tos .sn-check { font-size: 13px; line-height: 1.5; align-items: flex-start; }
.sn-tos .sn-check__box { margin-top: 1px; }
.sn-tos .sn-check a { color: var(--sn-blue-deep) !important; text-decoration: underline !important; text-underline-offset: 2px; }

.sn-recaptcha { margin: 4px 0; display: flex; justify-content: center; }
.sn-recaptcha:empty { display: none; }
