/* =========================================================================
   M8 (Kevin 12 Nov): the seller sign-up (/register) and log-in (/login) in
   Shopora's look, like the buyer pages (N10) but in the seller green #5DA249.
   Two halves on computers (picture + green card | form), one column on
   phones (no picture). Fonts from our own server (public/fonts/landing).
   ========================================================================= */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/landing/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/landing/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/landing/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/landing/poppins-800.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/landing/fira-sans-condensed-700.woff2') format('woff2'); }

:root {
    --sa-green: #5DA249;
    --sa-green-edge: #437A33;
    --sa-green-text: #3F7A30;
    --sa-dark: #183615;
    --sa-tint: #F4F8F0;
    --sa-muted: #4A5946;
    --sa-line: #D9E2D2;
    --sa-error: #B42318;
    --sa-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body.sa { margin: 0; background: var(--sa-tint); color: var(--sa-dark); font-family: var(--sa-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.sa *, .sa *::before, .sa *::after { box-sizing: border-box; }
.sa [hidden] { display: none !important; }

.sa-page { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- the picture half ---------- */
.sa-picture { position: relative; overflow: hidden; background: #FBEACE; }
.sa-picture picture, .sa-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; display: block; }
.sa-card { position: absolute; left: 32px; right: 32px; bottom: 32px; padding: 26px 28px; border-radius: 18px; background: rgba(24, 54, 21, 0.92); color: #fff; }
.sa-card-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.sa-card-title { margin: 0 0 14px; font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.sa-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sa-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.sa-tick { flex-shrink: 0; margin-top: 2px; color: var(--sa-green); }

/* ---------- the form half ---------- */
.sa-main { display: flex; justify-content: center; padding: 48px 32px; }
.sa-inner { width: 100%; max-width: 540px; }
.sa-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sa-brand { display: inline-flex; flex-direction: column; color: var(--sa-dark); text-decoration: none; }
.sa-logo { display: block; width: 150px; height: auto; }
.sa-tagline { margin-top: 2px; padding-left: 45px; font-family: 'Fira Sans Condensed', 'Arial Narrow', var(--sa-font); font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.sa-top-link { color: var(--sa-dark); font-size: 15px; text-align: right; }
.sa-top-link a { color: var(--sa-dark); font-weight: 700; text-decoration: none; }
.sa-top-link a:hover { text-decoration: underline; }

.sa-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.sa-progress li { padding-top: 10px; border-top: 6px solid #E6DED0; border-radius: 3px 3px 0 0; font-size: 13px; color: var(--sa-muted); }
.sa-progress li.is-done, .sa-progress li.is-now { border-top-color: var(--sa-green); }
.sa-progress li.is-now { color: var(--sa-dark); font-weight: 700; }
.sa-progress-line { display: none; margin: -14px 0 18px; font-size: 14px; color: var(--sa-muted); }
.sa-progress-line strong { color: var(--sa-dark); }

.sa .sa-h1 { font-family: var(--sa-font); color: var(--sa-dark); }
.sa-h1:focus { outline: none; }
.sa-h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.sa-intro { margin: 0 0 22px; color: var(--sa-muted); font-size: 1.02rem; }

.sa-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sa-field { margin-bottom: 16px; }
.sa-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--sa-dark); }
.sa-input {
    display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--sa-line); border-radius: 12px;
    background: #fff; color: var(--sa-dark); font: inherit; font-size: 16px;
}
.sa-input::placeholder { color: #8A9585; }
.sa-input:focus { outline: none; border-color: var(--sa-green); box-shadow: 0 0 0 3px rgba(93, 162, 73, 0.25); }
.sa-field.has-error .sa-input { border-color: var(--sa-error); }
.sa-phone { display: flex; border: 1.5px solid var(--sa-line); border-radius: 12px; background: #fff; overflow: hidden; }
.sa-phone:focus-within { border-color: var(--sa-green); box-shadow: 0 0 0 3px rgba(93, 162, 73, 0.25); }
.sa-field.has-error .sa-phone { border-color: var(--sa-error); }
.sa-cc-wrap { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; border-right: 1.5px solid var(--sa-line); background: #F3F6F0; font-weight: 700; }
.sa-cc-wrap::after { content: ''; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--sa-muted); border-bottom: 2px solid var(--sa-muted); transform: rotate(45deg); }
/* The country list: the whole box is the (invisible) list; "+237" is drawn over it. */
.sa-cc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.sa-cc-wrap:focus-within { box-shadow: inset 0 0 0 2px var(--sa-green); }
.sa-phone .sa-input { border: 0; border-radius: 0; box-shadow: none; }
.sa-pass { position: relative; }
.sa-pass .sa-input { padding-right: 48px; }
.sa-eye { position: absolute; top: 0; right: 0; width: 46px; height: 100%; border: 0; background: none; color: var(--sa-muted); cursor: pointer; }
.sa-eye:focus-visible { outline: 3px solid var(--sa-dark); outline-offset: -3px; border-radius: 12px; }
.sa-note { margin: 6px 0 0; font-size: 13.5px; color: var(--sa-muted); }
.sa-err { margin: 6px 0 0; font-size: 14px; color: var(--sa-error); font-weight: 600; }
.sa-err:empty { display: none; }
.sa-err a { color: var(--sa-error); text-decoration: underline; }

.sa-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--sa-dark); }
.sa-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sa-green); }
.sa-check a { color: var(--sa-dark); text-decoration: underline; }

.sa-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin: 6px 0 0; padding: 14px 22px;
    border: 0; border-radius: 999px; background: var(--sa-green); color: #fff; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none;
    box-shadow: 0 5px 0 var(--sa-green-edge); cursor: pointer; transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.sa-btn:hover { filter: brightness(1.04); color: #fff; text-decoration: none; }
.sa-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sa-green-edge); }
.sa-btn:focus-visible { outline: 3px solid var(--sa-dark); outline-offset: 4px; }
.sa-btn[disabled] { opacity: 0.7; cursor: wait; }
.sa-btn--ghost { background: #fff; color: var(--sa-dark); border: 1.5px solid var(--sa-line); box-shadow: none; font-size: 16px; min-height: 50px; }
.sa-btn--ghost:hover { color: var(--sa-dark); background: #F3F6F0; }
.sa-under { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--sa-muted); }
.sa-under a { color: var(--sa-dark); font-weight: 700; }
.sa-link-btn { padding: 0; border: 0; background: none; color: var(--sa-dark); font: inherit; text-decoration: underline; cursor: pointer; }

/* Code screen */
.sa-boxes { display: flex; gap: 8px; }
.sa-box { width: 100%; max-width: 54px; height: 58px; padding: 0; border: 1.5px solid var(--sa-line); border-radius: 12px; background: #fff; text-align: center; font: inherit; font-size: 24px; font-weight: 700; color: var(--sa-dark); }
.sa-box:focus { outline: none; border-color: var(--sa-green); box-shadow: 0 0 0 3px rgba(93, 162, 73, 0.25); }
.sa-timer { margin: 12px 0 16px; font-size: 14px; color: var(--sa-muted); }
.sa-help { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: #EAF2E3; font-size: 15px; }
.sa-help p { margin: 0; }

/* You're in */
.sa-done { text-align: center; }
.sa-done-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin: 4px auto 12px; border-radius: 50%; background: var(--sa-green); color: #fff; box-shadow: 0 0 0 10px #E3EEDB; }
.sa-checklist { margin: 18px 0 22px; padding: 6px 18px; list-style: none; text-align: left; background: #fff; border: 1.5px solid var(--sa-line); border-radius: 16px; }
.sa-checklist li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--sa-line); }
.sa-checklist li:last-child { border-bottom: 0; }
.sa-checklist a { color: var(--sa-dark); font-weight: 600; text-decoration: none; }
.sa-checklist a:hover { text-decoration: underline; }
.sa-num { flex-shrink: 0; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sa-green-text); color: var(--sa-green-text); font-size: 13px; font-weight: 700; }
.sa-num--done { background: var(--sa-green); border-color: var(--sa-green); color: #fff; }

/* Busy overlay */
.sa-busy { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(255, 255, 255, 0.6); }
.sa-spinner { width: 44px; height: 44px; border: 4px solid #D5E4CC; border-top-color: var(--sa-green); border-radius: 50%; animation: sa-spin 0.8s linear infinite; }
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* ---------- Log-in page: the existing form, in the same look ---------- */
.sa-login .form-group { margin-bottom: 14px; }
.sa-login .form-control { min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--sa-line) !important; border-radius: 12px !important; background: #fff !important; font-family: var(--sa-font); font-size: 16px; }
.sa-login .form-control:focus { border-color: var(--sa-green) !important; box-shadow: 0 0 0 3px rgba(93, 162, 73, 0.25) !important; }
.sa-login .input-group .js-toggle-password { position: absolute; right: 4px; top: 0; height: 100%; z-index: 3; }
.sa-login .input-group { position: relative; }
.sa-login .box-title { display: none; }
.sa-login .col-xs-12 { padding: 0; }
.sa-login .btn.sa-btn { text-transform: none; border: 0; }
.sa-login .forgot-password { margin: -4px 0 8px; text-align: right; }
.sa-login .forgot-password a { color: var(--sa-dark); font-weight: 600; font-size: 14.5px; }
.sa-login .error { color: var(--sa-error); font-size: 14px; font-weight: 600; }
.sa-login .sa-alt { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sa-login .select2-container { width: 100% !important; margin-bottom: 10px; }
.sa-login .alert { border-radius: 12px; }
.sa-login .btn.sa-btn--ghost { border: 1.5px solid var(--sa-line); }
.sa-login .sa-label { font-family: var(--sa-font); }

/* ---------- Phones: one column, no picture ---------- */
@media (max-width: 900px) {
    .sa-page { grid-template-columns: minmax(0, 1fr); }
    .sa-picture { display: none; }
    .sa-main { padding: 22px 20px 36px; }
    .sa-logo { width: 118px; }
    .sa-tagline { font-size: 11.5px; padding-left: 35px; }
    .sa-progress { margin-bottom: 18px; }
    .sa-progress li { font-size: 0; padding-top: 0; }
    .sa-progress-line { display: block; margin: -8px 0 16px; }
    .sa-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sa-top-link .sa-top-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sa-btn { transition: none; }
    .sa-spinner { animation-duration: 2s; }
}
