/* =============================================
   LockTrust — Shared Design System
   Font: DM Sans (body) + Syne (headings)
   Theme: Navy/Slate — Trust & Security
   ============================================= */

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

:root {
  --navy:       #0B1A2E;
  --navy-light: #132340;
  --slate:      #1E3456;
  --blue:       #1A56DB;
  --blue-light: #2563EB;
  --blue-pale:  #EBF2FF;
  --teal:       #0D9488;
  --teal-pale:  #CCFBF1;
  --red:        #DC2626;
  --red-pale:   #FEE2E2;
  --amber:      #D97706;
  --amber-pale: #FEF3C7;
  --green:      #059669;
  --green-pale: #D1FAE5;
  --ink:        #111827;
  --ink-mid:    #374151;
  --ink-muted:  #6B7280;
  --ink-faint:  #9CA3AF;
  --border:     #E5E7EB;
  --border-mid: #D1D5DB;
  --surface:    #F9FAFB;
  --white:      #FFFFFF;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- Layout ---- */
.lt-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.lt-panel-left {
  width: 420px;
  /* background: #CCFBF1; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* .lt-panel-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(26,86,219,.3) 0%, transparent 70%);
  pointer-events: none;
}

.lt-panel-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(13,148,136,.2) 0%, transparent 70%);
  pointer-events: none;
} */

.lt-panel-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}

.lt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.lt-brand-icon {
  width: 44px; height: 44px;
  background: var(--blue);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

.lt-brand-icon svg { width: 24px; height: 24px; }

.lt-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.lt-panel-tagline {
  position: relative;
  z-index: 1;
}

.lt-panel-tagline h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.lt-panel-tagline p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

.lt-panel-dots {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.lt-panel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.lt-panel-dots span.active { background: var(--blue); }

/* ---- Form Card ---- */
.lt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}

.lt-card-wide { max-width: 560px; }

.lt-card-header { margin-bottom: 28px; }

.lt-card-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.4px;
  margin-bottom: 6px;
}

.lt-card-header p {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ---- Form Elements ---- */
.lt-field { margin-bottom: 18px; }

.lt-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

.lt-field input,
.lt-field select,
.lt-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.lt-field input:focus,
.lt-field select:focus,
.lt-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.lt-field input.error,
.lt-field select.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.lt-field .lt-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.lt-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.lt-error.show { display: block; }
.lt-field .lt-error.show { display: block; }

.lt-field textarea { resize: vertical; min-height: 88px; }

.lt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lt-field-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Password input with toggle */
.lt-pw-wrap { position: relative; }
.lt-pw-wrap input { padding-right: 44px; }
.lt-pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); font-size: 13px; padding: 4px;
}
.lt-pw-toggle:hover { color: var(--ink-mid); }

/* Password strength bar */
.lt-pw-strength { margin-top: 8px; }
.lt-pw-bar-bg {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.lt-pw-bar-fill {
  height: 100%; border-radius: 2px; transition: width .3s, background .3s;
  width: 0; background: var(--red);
}
.lt-pw-hint { font-size: 11px; color: var(--ink-muted); }

/* ---- Buttons ---- */
.lt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s;
  white-space: nowrap;
}

.lt-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.lt-btn-primary:hover { background: var(--blue-light); }
.lt-btn-primary:active { transform: scale(.98); }

.lt-btn-outline {
  background: transparent;
  color: var(--ink-mid);
  border-color: var(--border-mid);
}
.lt-btn-outline:hover { background: var(--surface); }

.lt-btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
  padding: 0;
  font-size: 13px;
}
.lt-btn-ghost:hover { text-decoration: underline; }

.lt-btn-full { width: 100%; }

.lt-btn-sm { padding: 8px 16px; font-size: 13px; }

.lt-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Steps indicator ---- */
.lt-steps {
  display: flex; align-items: center; margin-bottom: 28px;
}

.lt-step { display: flex; align-items: center; gap: 8px; flex: 1; }

.lt-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border-mid);
  color: var(--ink-faint);
  background: var(--white);
  flex-shrink: 0;
  transition: all .2s;
}

.lt-step.active .lt-step-num {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

.lt-step.done .lt-step-num {
  background: var(--green-pale); border-color: var(--green); color: var(--green);
}

.lt-step-label { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.lt-step.active .lt-step-label { color: var(--blue); font-weight: 500; }
.lt-step.done .lt-step-label { color: var(--green); }

.lt-step-line {
  flex: 1; height: 1px; background: var(--border); margin: 0 8px;
}

.lt-step.done + .lt-step-line { background: var(--green); }

/* ---- Tabs (user type) ---- */
.lt-type-tabs { display: flex; gap: 10px; margin-bottom: 22px; }

.lt-tab {
  flex: 1; padding: 12px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer; text-align: center;
  font-size: 13px; font-weight: 500;
  color: var(--ink-muted);
  transition: all .15s;
}

.lt-tab:hover { border-color: var(--blue); color: var(--blue); }

.lt-tab.active {
  background: var(--blue-pale);
  border-color: var(--blue);
  color: var(--blue);
}

.lt-tab .lt-tab-icon {
  display: block; margin: 0 auto 4px;
  width: 22px; height: 22px;
}

/* ---- OTP input ---- */
.lt-otp-input {
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

/* ---- Verified chip ---- */
.lt-chip-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid rgba(5,150,105,.2);
  border-radius: 20px; padding: 4px 10px;
  margin-top: 6px;
}

/* ---- Alert messages ---- */
.lt-alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px;
}

.lt-alert-error { background: var(--red-pale); color: var(--red); border: 1px solid rgba(220,38,38,.2); }
.lt-alert-info  { background: var(--blue-pale); color: var(--blue); border: 1px solid rgba(26,86,219,.15); }
.lt-alert-warn  { background: var(--amber-pale); color: var(--amber); border: 1px solid rgba(217,119,6,.2); }
.lt-alert-success { background: var(--green-pale); color: var(--green); border: 1px solid rgba(5,150,105,.2); }

/* ---- Divider ---- */
.lt-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--ink-faint); font-size: 12px;
}
.lt-divider::before, .lt-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ---- Countdown timer ---- */
.lt-timer { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.lt-timer strong { color: var(--blue); }

/* ---- Checkbox ---- */
.lt-checkbox-wrap {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-mid);
}
.lt-checkbox-wrap input[type=checkbox] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--blue);
}

/* ---- Verify field row ---- */
.lt-verify-row { display: flex; gap: 10px; align-items: flex-start; }
.lt-verify-row input { flex: 1; }
.lt-verify-row .lt-btn { flex-shrink: 0; height: 44px; }

/* ---- Edit icon ---- */
.lt-edit-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); padding: 4px; margin-left: 6px;
  transition: color .15s;
}
.lt-edit-btn:hover { color: var(--blue); }

/* ---- QR code box ---- */
.lt-qr-box {
  background: var(--surface);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px; text-align: center;
  margin-bottom: 20px;
}

.lt-qr-box img { max-width: 160px; }

/* ---- File upload ---- */
.lt-file-area {
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lt-file-area:hover { border-color: var(--blue); background: var(--blue-pale); }
.lt-file-area input[type=file] { display: none; }
.lt-file-area p { font-size: 13px; color: var(--ink-muted); margin-top: 6px; }

/* ---- Progress bar ---- */
.lt-progress-bar {
  height: 3px; background: var(--border);
  border-radius: 2px; margin-bottom: 24px; overflow: hidden;
}
.lt-progress-fill {
  height: 100%; background: var(--blue); border-radius: 2px;
  transition: width .4s ease;
}

/* ---- Buttons row ---- */
.lt-btn-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; gap: 12px;
}

.lt-btn-row-end { justify-content: flex-end; }

/* ---- Link ---- */
.lt-link { color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 500; }
.lt-link:hover { text-decoration: underline; }

/* ---- Section title ---- */
.lt-section-title {
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ---- Success screen ---- */
.lt-success {
  text-align: center; padding: 20px 0;
}
.lt-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.lt-success h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px; color: var(--ink);
}
.lt-success p { font-size: 14px; color: var(--ink-muted); }

/* ---- Google sign-in ---- */
.lt-google-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 11px;
  background: var(--white);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer; transition: all .15s;
  font-family: 'DM Sans', sans-serif;
}
.lt-google-btn:hover { background: var(--surface); border-color: var(--blue); }

/* ---- Loader overlay ---- */
.lt-loader-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(255,255,255,.7);
  z-index: 999;
  align-items: center; justify-content: center;
}
.lt-loader-overlay.show { display: flex; }
.lt-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lt-spin .7s linear infinite;
}
@keyframes lt-spin { to { transform: rotate(360deg); } }

/* ---- Passport note ---- */
.lt-note {
  background: var(--amber-pale);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px; color: var(--amber);
  margin-top: -10px; margin-bottom: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .lt-panel-left { display: none; }
  .lt-page { display: block; }
  .lt-panel-right { min-height: 100vh; padding: 24px 16px; }
  .lt-card { padding: 28px 22px; }
  .lt-field-row, .lt-field-row3 { grid-template-columns: 1fr; }
}
