@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #142126;
  --muted: #718087;
  --line: #e5ecec;
  --green: #16a879;
  --green-dark: #0c875f;
  --mint: #e7f7f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 4% 16%, rgba(202, 239, 225, .58), transparent 36%),
    radial-gradient(ellipse at 93% 82%, rgba(217, 237, 237, .66), transparent 32%),
    #f5f8f8;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 33, 38, .07);
}

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark, .mini-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}
.brand-mark { width: 38px; height: 38px; font-size: 21px; box-shadow: 0 6px 14px rgba(22, 168, 121, .2); }
.brand-name { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.55px; }
.brand-region { margin-left: 7px; color: var(--green-dark); font-size: 11px; letter-spacing: .08em; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #75848a; font-size: 12px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 168, 121, .1); }

.auth-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  align-items: center;
  gap: clamp(56px, 10vw, 145px);
  padding: 58px 6.5% 72px;
}

.intro { max-width: 510px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--green-dark); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { width: 24px; height: 1px; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 25px 0 20px; font-family: 'Manrope', sans-serif; font-size: clamp(43px, 5.3vw, 66px); font-weight: 700; line-height: 1.1; letter-spacing: -.055em; }
h1 span { color: #7a8b8f; }
.intro-copy { max-width: 390px; margin-bottom: 45px; color: #718087; font-size: 16px; line-height: 1.7; }
.intro-footnote { display: inline-flex; align-items: center; gap: 12px; color: #6e7e82; font-size: 12px; font-weight: 600; }
.shield-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #dbe9e3; border-radius: 11px; color: var(--green-dark); background: rgba(255,255,255,.55); }
.shield-icon svg { width: 19px; height: 19px; }

.auth-card {
  width: 100%;
  padding: 34px 34px 27px;
  border: 1px solid rgba(215, 228, 228, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(32, 63, 68, .08), 0 3px 10px rgba(32, 63, 68, .03);
  backdrop-filter: blur(18px);
}
.card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.mini-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 23px; }
.card-kicker { margin-bottom: 4px; color: #819095; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.card-heading h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 20px; letter-spacing: -.03em; }
.choice-list { display: grid; gap: 12px; }
.choice-button {
  width: 100%; min-height: 74px; display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px;
  color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.choice-button:hover { transform: translateY(-2px); border-color: #b8dfd0; box-shadow: 0 9px 22px rgba(32, 63, 68, .07); }
.choice-button:focus-visible, .back-button:focus-visible, .submit-button:focus-visible, input:focus-visible { outline: 3px solid rgba(22, 168, 121, .23); outline-offset: 2px; }
.choice-primary { background: var(--green); border-color: var(--green); color: #fff; }
.choice-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.choice-secondary { background: #fff; color: var(--ink); }
.choice-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: rgba(255,255,255,.17); }
.choice-secondary .choice-icon { color: var(--green-dark); background: var(--mint); }
.choice-icon svg { width: 21px; height: 21px; }
.choice-copy { display: grid; gap: 4px; min-width: 0; }
.choice-copy strong { font-size: 14px; font-weight: 700; }
.choice-copy small { color: inherit; opacity: .72; font-size: 11px; }
.choice-arrow { margin-left: auto; font-size: 17px; opacity: .78; }
.card-divider { position: relative; display: flex; justify-content: center; margin: 24px 0 16px; color: #9aa6a9; font-size: 10px; }
.card-divider::before { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #edf1f1; content: ''; }
.card-divider span { position: relative; padding: 0 12px; background: #fff; }
.terms-copy { margin: 0; color: #89969a; font-size: 10px; line-height: 1.65; text-align: center; }
.terms-copy a { color: #63797b; text-decoration-color: #c4d1d0; text-underline-offset: 2px; }

.auth-form { margin: -5px 0 4px; }
.auth-form[hidden] { display: none; }
.back-button { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 17px; padding: 5px 0; border: 0; background: transparent; color: #748286; font-size: 12px; font-weight: 600; cursor: pointer; }
.back-button span { font-size: 16px; }
.auth-form h3 { margin-bottom: 5px; font-family: 'Manrope', sans-serif; font-size: 21px; letter-spacing: -.03em; }
.form-description { margin-bottom: 18px; color: #829095; font-size: 12px; line-height: 1.5; }
.auth-form form { display: grid; }
.auth-form label { margin: 0 0 7px; color: #4f6266; font-size: 11px; font-weight: 700; }
.auth-form input { width: 100%; height: 44px; margin-bottom: 14px; padding: 0 13px; border: 1px solid #dfe8e8; border-radius: 10px; background: #fbfdfd; color: var(--ink); font-size: 13px; }
.auth-form input::placeholder { color: #a7b2b4; }
.submit-button { min-height: 46px; margin-top: 4px; border: 0; border-radius: 11px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.submit-button:hover { background: var(--green-dark); }
.form-notice { min-height: 15px; margin: 8px 0 0; color: #b36e2a; font-size: 10px; line-height: 1.4; }

.footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(20, 33, 38, .07); color: #8b989b; font-size: 11px; }
.footer a { color: #5d7779; text-decoration: none; }

/* Registration flow */
.register-shell { min-height: 100vh; }
.topbar-back { color: #718087; font-size: 12px; font-weight: 600; text-decoration: none; }
.topbar-back:hover, .register-back:hover { color: var(--green-dark); }
.register-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 0 48px; }
.register-card { width: min(100%, 560px); padding: 32px 38px 35px; border: 1px solid rgba(215, 228, 228, .9); border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 24px 70px rgba(32, 63, 68, .08), 0 3px 10px rgba(32, 63, 68, .03); }
.register-back { display: none; margin-bottom: 19px; color: #718087; font-size: 12px; font-weight: 600; text-decoration: none; }
.register-heading .eyebrow { font-size: 10px; }
.register-heading h1 { margin: 15px 0 7px; font-size: 32px; letter-spacing: -.045em; }
.register-subtitle { margin: 0; color: #78878b; font-size: 13px; line-height: 1.55; }
.demo-notice { display: flex; gap: 11px; margin: 22px 0 25px; padding: 13px 14px; border: 1px solid #f0d9b8; border-radius: 12px; background: #fff9ef; color: #765b37; }
.demo-notice-icon { width: 18px; height: 18px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e9a947; color: #fff; font-size: 12px; font-weight: 700; }
.demo-notice p { margin: 0; font-size: 10px; line-height: 1.55; }
.demo-notice strong { color: #674a25; }
.stepper { display: grid; grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 25px; padding: 0; list-style: none; }
.step-item { display: flex; align-items: center; gap: 8px; color: #9aa6a9; font-size: 10px; font-weight: 600; white-space: nowrap; }
.step-number { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #dfe8e8; border-radius: 50%; background: #fff; color: #8a999c; font-size: 10px; }
.step-item.is-active { color: #16845f; }
.step-item.is-active .step-number, .step-item.is-complete .step-number { border-color: var(--green); background: var(--green); color: #fff; }
.step-item.is-complete { color: #16845f; }
.step-line { height: 1px; background: #e7eded; }
.register-form[hidden], .completion-panel[hidden], .stepper[hidden] { display: none !important; }
.form-section-title { margin-bottom: 18px; }
.form-section-title h2, .completion-panel h2 { margin: 0 0 5px; font-family: 'Manrope', sans-serif; font-size: 17px; letter-spacing: -.025em; }
.form-section-title p { margin: 0; color: #879397; font-size: 11px; line-height: 1.5; }
.register-form > label:not(.upload-card):not(.consent-row) { display: block; margin: 0 0 7px; color: #4f6266; font-size: 11px; font-weight: 700; }
.register-form > input, .phone-field, .password-field { width: 100%; height: 45px; margin-bottom: 15px; border: 1px solid #dfe8e8; border-radius: 10px; background: #fbfdfd; }
.register-form > input { padding: 0 13px; color: var(--ink); font-size: 13px; }
.register-form input::placeholder { color: #a7b2b4; }
.register-form input:focus-visible { outline: 3px solid rgba(22, 168, 121, .2); outline-offset: 1px; border-color: #8acbb2; }
.phone-field, .password-field { display: flex; align-items: center; overflow: hidden; }
.phone-prefix { height: 100%; display: flex; align-items: center; padding: 0 12px; border-right: 1px solid #e5ecec; color: #65777a; font-size: 12px; font-weight: 700; }
.phone-field input, .password-field input { width: 100%; height: 100%; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.password-field input:focus-visible { outline: 0; }
.password-toggle { height: 100%; flex: 0 0 auto; padding: 0 12px; border: 0; background: transparent; color: var(--green-dark); font-size: 10px; font-weight: 700; cursor: pointer; }
.input-hint { margin: -9px 0 17px; color: #97a3a6; font-size: 10px; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin: 3px 0 4px; color: #7e8c90; font-size: 10px; line-height: 1.5; }
.consent-row input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--green); }
.consent-row a { color: #587b73; text-underline-offset: 2px; }
.validation-message { min-height: 15px; margin: 5px 0 7px; color: #b35743; font-size: 10px; line-height: 1.45; }
.register-next { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.register-next span { font-size: 16px; }
.upload-card { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 21px; border: 1.5px dashed #b9d9cd; border-radius: 14px; background: #f7fcfa; color: #506469; text-align: center; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.upload-card:hover { border-color: var(--green); background: #f0faf5; }
.upload-card:focus-within { outline: 3px solid rgba(22, 168, 121, .2); outline-offset: 2px; }
.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--mint); color: var(--green-dark); }
.upload-icon svg { width: 22px; height: 22px; }
.upload-card strong { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; }
.upload-card > span:last-of-type { color: #91a0a3; font-size: 10px; }
.upload-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.upload-tip { margin: 10px 0 4px; color: #859397; font-size: 10px; line-height: 1.55; }
.kyc-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 4px; }
.secondary-button { min-height: 46px; border: 1px solid #dfe8e8; border-radius: 11px; background: #fff; color: #637477; font-size: 12px; font-weight: 700; cursor: pointer; }
.secondary-button:hover { background: #f7faf9; }
.completion-panel { text-align: center; }
.completion-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-size: 23px; }
.completion-pending-icon { background: #fff4df; color: #a6762b; font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.completion-kicker { margin: 0 0 6px; color: #869398; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.completion-panel h2 { font-size: 19px; }
.completion-panel p { margin: 8px 0 20px; color: #7f8d91; font-size: 12px; line-height: 1.6; }
.completion-demo-note { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #f0d9b8; border-radius: 10px; background: #fff9ef; color: #765b37; font-size: 10px; line-height: 1.5; }
.completion-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.register-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0; color: #8a999c; font-size: 10px; }
.lock-icon { color: var(--green-dark); font-size: 13px; }
.video-capture { position: relative; width: 100%; min-height: 205px; overflow: hidden; border: 1px solid #e0e9e8; border-radius: 14px; background: #142126; }
.camera-preview, .recorded-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #142126; }
.camera-preview[hidden], .recorded-preview[hidden], .camera-placeholder[hidden], .record-stop[hidden], .record-controls .submit-button[hidden] { display: none !important; }
.camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 20px; color: #fff; text-align: center; }
.camera-placeholder-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #7ce0ba; font-size: 25px; }
.camera-placeholder strong { font-size: 12px; }
.camera-placeholder > span:last-child { max-width: 270px; color: rgba(255,255,255,.68); font-size: 10px; line-height: 1.5; }
.record-controls { margin-top: 12px; }
.record-controls .submit-button, .record-stop { width: 100%; }
.record-stop { min-height: 46px; border: 1px solid #e6c8c5; border-radius: 11px; background: #fff7f6; color: #a1423b; font-size: 12px; font-weight: 700; cursor: pointer; }
.record-stop:hover { background: #ffefed; }
.record-status { min-height: 15px; margin: 8px 0 10px; color: #728286; font-size: 10px; line-height: 1.45; }
.video-consent { margin-top: 13px; }
.consent-detail { margin: 7px 0 4px 24px; color: #9a8580; font-size: 9px; line-height: 1.45; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; padding-inline: 2%; }
  .auth-card { padding: 30px 27px 24px; }
  h1 { font-size: clamp(40px, 6vw, 56px); }
}

@media (max-width: 680px) {
  .page-shell { width: min(100% - 36px, 460px); }
  .topbar { height: 72px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-name { font-size: 15px; }
  .topbar-note { gap: 7px; font-size: 10px; }
  .auth-layout { display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding: 43px 0 38px; }
  .intro { max-width: none; }
  .eyebrow { font-size: 10px; }
  h1 { margin: 17px 0 10px; font-size: clamp(37px, 11vw, 48px); }
  .intro-copy { max-width: 320px; margin-bottom: 0; font-size: 14px; line-height: 1.55; }
  .intro-footnote { display: none; }
  .auth-card { padding: 24px 20px 20px; border-radius: 18px; }
  .card-heading { gap: 12px; margin-bottom: 20px; }
  .mini-mark { width: 40px; height: 40px; }
  .card-heading h2 { font-size: 18px; }
  .choice-button { min-height: 68px; gap: 11px; padding: 11px 12px; border-radius: 12px; }
  .choice-icon { width: 36px; height: 36px; border-radius: 11px; }
  .choice-copy strong { font-size: 13px; }
  .choice-copy small { font-size: 10px; }
  .card-divider { margin: 19px 0 13px; }
  .footer { min-height: 60px; flex-wrap: wrap; justify-content: center; gap: 5px 16px; padding: 12px 0; font-size: 10px; text-align: center; }
  .topbar-back { font-size: 11px; }
  .register-main { justify-content: flex-start; padding: 25px 0 32px; }
  .register-card { padding: 25px 20px 23px; border-radius: 18px; }
  .register-back { display: inline-block; }
  .register-heading h1 { margin-top: 12px; font-size: 29px; }
  .register-subtitle { font-size: 12px; }
  .demo-notice { margin: 18px 0 21px; padding: 11px 12px; }
  .demo-notice p { font-size: 9px; }
  .stepper { gap: 7px; margin-bottom: 21px; }
  .step-item { gap: 6px; font-size: 9px; }
  .step-number { width: 22px; height: 22px; }
  .form-section-title h2 { font-size: 16px; }
  .form-section-title p { font-size: 10px; }
  .register-form > input, .phone-field, .password-field { height: 44px; }
  .upload-card { min-height: 155px; }
  .register-security { font-size: 9px; }
}

@media (max-width: 360px) {
  .page-shell { width: calc(100% - 28px); }
  .auth-card { padding-inline: 16px; }
  .topbar-note { font-size: 9px; }
}

.demo-notice[hidden] { display: none !important; }
