*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.sl-register-page { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ── Split wrapper ── */
.sl-split {
    display: flex; min-height: 100vh;
}

/* ── Brand panel (left) ── */
.sl-brand {
    flex: 0 0 40%; background: linear-gradient(160deg, #0d1f0d 0%, #1a3a1a 50%, #2d5a2d 100%);
    padding: 48px 40px; display: flex; flex-direction: column;
    justify-content: center; position: relative; overflow: hidden;
}
.sl-brand::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 260px; height: 260px; background: rgba(255,255,255,0.03); border-radius: 50%;
}
.sl-brand::after {
    content: ''; position: absolute; bottom: -80px; left: -40px;
    width: 200px; height: 200px; background: rgba(255,255,255,0.02); border-radius: 50%;
}
.sl-logo-box {
    display: flex; align-items: center; gap: 12px; margin-bottom: 36px;
}
.sl-logo-icon {
    width: 46px; height: 46px; background: rgba(255,255,255,0.15);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 22px;
}
.sl-brand-name { color: #fff; font-size: 22px; font-weight: 700; }
.sl-brand h2 {
    color: #fff; font-size: 26px; font-weight: 700; line-height: 1.3;
    margin-bottom: 12px;
}
.sl-brand-desc { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; margin-bottom: 36px; }

/* How-it-works steps */
.sl-steps { display: flex; flex-direction: column; gap: 20px; }
.sl-step { display: flex; align-items: flex-start; gap: 14px; }
.sl-step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: #fff;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sl-step-text { color: rgba(255,255,255,.8); font-size: 14px; }
.sl-step-text strong { color: #fff; display: block; font-size: 13px; margin-bottom: 2px; }

/* ── Form panel (right) ── */
.sl-form-panel {
    flex: 1; background: #f5f5f3; display: flex;
    align-items: center; justify-content: center;
    padding: 36px 32px; overflow-y: auto;
}
.sl-form-inner {
    width: 100%; max-width: 480px;
    background: var(--color-surface, #fff); border-radius: 18px;
    padding: 36px 32px; box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Progress bar */
.sl-progress { display: flex; align-items: center; margin-bottom: 28px; }
.sl-prog-step {
    display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.sl-prog-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: #e0e0e0; color: var(--color-text-muted, #999);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.sl-prog-dot.done   { background: #2d7a3a; color: #fff; }
.sl-prog-dot.active { background: var(--color-surface, #fff); border: 2.5px solid #2d7a3a; color: #2d7a3a; }
.sl-prog-lbl { font-size: 10px; color: var(--color-text-muted, #999); margin-top: 4px; white-space: nowrap; }
.sl-prog-lbl.active { color: #2d7a3a; font-weight: 600; }
.sl-prog-line { flex: 1; height: 2px; background: #e0e0e0; }
.sl-prog-line.done { background: #2d7a3a; }

/* Heading */
.sl-form-title { font-size: 22px; font-weight: 700; color: #1a2e1a; margin-bottom: 4px; }
.sl-form-sub { font-size: 13px; color: var(--color-text-muted, #888); margin-bottom: 22px; }

/* Field label */
.sl-label { font-size: 12px; font-weight: 600; color: var(--color-text-muted, #666); margin-bottom: 4px; display: block; }

/* Input rows */
.sl-input-row {
    position: relative; margin-bottom: 6px;
    border: 1.5px solid var(--color-border, #e0e0e0); border-radius: 10px;
    display: flex; align-items: center; padding: 0 14px;
    transition: border-color .2s; background: var(--color-surface, #fff);
}
.sl-input-row:focus-within { border-color: #2d7a3a; }
.sl-input-row.sl-error   { border-color: #dc3545; }
.sl-input-row.sl-success { border-color: #2d7a3a; }
.sl-input-icon { color: #aaa; font-size: 16px; flex-shrink: 0; margin-right: 10px; }
.sl-input-row input {
    flex: 1; border: none; outline: none; padding: 13px 0;
    font-size: 14px; color: var(--color-text, #222); background: transparent;
}
.sl-input-row input:disabled { color: #aaa; cursor: not-allowed; }
.sl-toggle-btn {
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: 15px; padding: 0; flex-shrink: 0;
}
.sl-field-msg { font-size: 11px; color: #dc3545; margin-bottom: 12px; min-height: 14px; padding-left: 2px; }
.sl-field-msg.ok { color: #2d7a3a; }

/* Section divider */
.sl-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 18px 0; color: #ccc; font-size: 12px;
}
.sl-divider::before, .sl-divider::after {
    content: ''; flex: 1; height: 1px; background: #efefef;
}

/* OTP card */
.sl-otp-card {
    background: #f9fdf9; border: 1.5px solid #c8e8c8;
    border-radius: 12px; padding: 16px; margin-bottom: 22px;
}
.sl-otp-row { display: flex; gap: 10px; margin-bottom: 12px; }
.sl-otp-row:last-child { margin-bottom: 0; }
.sl-otp-email-chip {
    flex: 1; background: #eaf4ea; border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #2d7a3a;
    font-weight: 600; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; display: flex; align-items: center; gap: 6px;
}
.sl-otp-btn {
    padding: 10px 16px; border: 1.5px solid #2d7a3a;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    background: #2d7a3a; color: #fff; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.sl-otp-btn:disabled { opacity: .45; cursor: not-allowed; }
.sl-verify-btn {
    padding: 10px 16px; border: 1.5px solid #1a2e1a;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    background: #1a2e1a; color: #fff; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.sl-verify-btn:disabled { opacity: .45; cursor: not-allowed; }
.sl-verified-banner {
    display: none; background: #eaf4ea; color: #2d7a3a;
    border-radius: 8px; padding: 10px 14px;
    font-size: 13px; font-weight: 600; text-align: center;
}

/* Submit */
.sl-btn-submit {
    width: 100%; padding: 14px; background: #1a2e1a; color: #fff;
    border: none; border-radius: 10px; font-size: 15px;
    font-weight: 600; cursor: pointer; transition: background .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 16px;
}
.sl-btn-submit:hover:not(:disabled) { background: #2d7a3a; }
.sl-btn-submit:disabled { opacity: .45; cursor: not-allowed; }
.sl-switch-row { text-align: center; font-size: 14px; color: var(--color-text-muted, #888); }
.sl-switch-row a { color: #2d7a3a; text-decoration: none; font-weight: 600; }
.sl-switch-row a:hover { text-decoration: underline; }

/* Strength bar */
.sl-strength-row { display: flex; gap: 4px; margin-bottom: 4px; }
.sl-strength-seg { flex: 1; height: 3px; background: #eee; border-radius: 2px; transition: background .3s; }

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .sl-brand { flex: 0 0 38%; padding: 40px 32px; }
    .sl-brand h2 { font-size: 22px; }
    .sl-brand-desc { font-size: 13.5px; margin-bottom: 28px; }
    .sl-steps { gap: 16px; }
    .sl-form-panel { padding: 32px 24px; }
    .sl-form-inner { max-width: 440px; padding: 32px 28px; }
}

/* ── Tablet portrait (≤ 820px) — stack columns, full brand visible ── */
@media (max-width: 820px) and (min-width: 641px) {
    .sl-split { flex-direction: column; min-height: 100vh; }

    .sl-brand {
        flex: none;
        padding: 32px 36px 36px;
    }
    .sl-logo-box { margin-bottom: 18px; }
    .sl-brand h2 { font-size: 24px; margin-bottom: 10px; }
    .sl-brand-desc { font-size: 14px; margin-bottom: 22px; max-width: 560px; }

    .sl-steps {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px 18px;
    }
    .sl-step {
        flex: 1 1 calc(33.333% - 18px);
        min-width: 200px;
        align-items: center;
    }
    .sl-step-text { font-size: 13px; }

    .sl-form-panel { padding: 32px 24px; }
    .sl-form-inner { max-width: 520px; padding: 30px 28px; }
}

/* ──────────────────────────────────────────────────────────────
   MOBILE REDESIGN (≤ 640px) — app-style: hero header + form sheet
   ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    body.sl-register-page { background: #0d1f0d; }

    .sl-split {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Compact green hero — logo + tagline only */
    .sl-brand {
        flex: none;
        padding: 26px 22px 52px;
        text-align: left;
    }
    .sl-brand::before { width: 180px; height: 180px; top: -50px; right: -50px; }
    .sl-brand::after  { display: none; }

    .sl-logo-box { margin-bottom: 16px; gap: 10px; }
    .sl-logo-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
    .sl-brand-name { font-size: 19px; }

    .sl-brand h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .sl-brand h2 br { display: none; }
    .sl-brand-desc { display: none; }
    .sl-steps       { display: none; }

    /* Form panel becomes an overlapping rounded sheet */
    .sl-form-panel {
        flex: 1;
        margin-top: -28px;
        padding: 0 14px 32px;
        background: #f5f5f3;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -6px 20px rgba(0,0,0,.08);
        position: relative;
        z-index: 1;
        align-items: stretch;
    }
    .sl-form-inner {
        max-width: 100%;
        margin-top: 20px;
        padding: 22px 18px 24px;
        border-radius: 16px;
        box-shadow: 0 2px 14px rgba(0,0,0,.05);
    }

    /* Progress bar — compact */
    .sl-progress { margin-bottom: 20px; }
    .sl-prog-dot { width: 26px; height: 26px; font-size: 10.5px; }
    .sl-prog-lbl { font-size: 10px; margin-top: 5px; }
    .sl-prog-line { margin: 0 4px; }

    .sl-form-title { font-size: 20px; margin-bottom: 4px; }
    .sl-form-sub { font-size: 12.5px; margin-bottom: 18px; }
    .sl-label { font-size: 12px; margin-bottom: 5px; }

    /* Inputs — 16px to prevent iOS focus zoom, taller touch targets */
    .sl-input-row {
        padding: 0 14px;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    .sl-input-row input { padding: 13px 0; font-size: 16px; }
    .sl-input-icon { font-size: 16px; margin-right: 10px; }
    .sl-toggle-btn {
        font-size: 17px;
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .sl-field-msg { font-size: 11.5px; margin-bottom: 10px; }

    .sl-divider { margin: 16px 0; font-size: 11px; }

    /* OTP card: stack chip + send, OTP input + verify */
    .sl-otp-card { padding: 14px; border-radius: 12px; }
    .sl-otp-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }
    .sl-otp-email-chip {
        width: 100%;
        padding: 11px 12px;
        font-size: 13px;
    }
    .sl-otp-btn,
    .sl-verify-btn {
        width: 100%;
        padding: 12px 14px;
        min-height: 46px;
        font-size: 14px;
        border-radius: 10px;
    }

    .sl-btn-submit {
        padding: 15px;
        font-size: 15.5px;
        min-height: 50px;
        border-radius: 12px;
        margin-bottom: 14px;
    }
    .sl-switch-row { font-size: 14px; }
}

/* ── Small mobile (≤ 380px) ── */
@media (max-width: 380px) {
    .sl-brand { padding: 22px 18px 48px; }
    .sl-brand h2 { font-size: 19px; }
    .sl-form-panel { padding: 0 10px 28px; }
    .sl-form-inner { padding: 18px 14px 20px; }
    .sl-form-title { font-size: 19px; }

    .sl-prog-dot { width: 24px; height: 24px; font-size: 10px; }
    .sl-prog-lbl { font-size: 9.5px; }
}

/* ── Landscape phones — keep hero tiny, form scrolls ── */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
    .sl-split { min-height: auto; }
    .sl-brand { padding: 16px 24px 34px; }
    .sl-brand h2 { font-size: 18px; margin-bottom: 4px; }
    .sl-form-panel { padding: 0 18px 24px; margin-top: -20px; }
    .sl-form-inner { margin-top: 18px; padding: 20px 18px; }
}
