/* Template 4 — Auth (split-screen). Brand visual left, form right. */
@import url("/wp-content/mu-plugins/byd-design-system/inner.css");

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; }

/* Left — brand panel */
.auth-brand {
  background: #0a0a0a; color: #fff;
  padding: 40px 48px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; min-height: 100vh;
  border-right: 4px solid var(--red);
}
.auth-brand::before {
  content: 'BYD';
  position: absolute; bottom: -60px; right: -40px;
  font-size: 340px; font-weight: 800; letter-spacing: -0.04em;
  color: rgba(255,255,255,0.03); line-height: 0.85;
  pointer-events: none;
}
.auth-brand-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.auth-brand-top .logo-img { height: 34px; filter: brightness(0) invert(1); }
.auth-brand-top .back-link { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.auth-brand-top .back-link:hover { color: var(--red); }
.auth-brand-body { position: relative; z-index: 2; max-width: 460px; }
.auth-brand-body .eyebrow { color: var(--red); margin-bottom: 20px; display: block; }
.auth-brand-body h1 { font-size: clamp(36px, 3.6vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; color: #fff; margin-bottom: 20px; }
.auth-brand-body h1 em { font-style: normal; color: var(--red); }
.auth-brand-body p { font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.68); max-width: 44ch; }
.auth-brand-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.auth-brand-stats .st-v { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.auth-brand-stats .st-l { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 6px; font-weight: 600; }
.auth-brand-foot { position: relative; z-index: 2; font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 20px; }
.auth-brand-foot a:hover { color: rgba(255,255,255,0.8); }

/* Right — form panel */
.auth-form-wrap { padding: 40px 48px; display: flex; flex-direction: column; min-height: 100vh; }
.auth-form-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink-dim); }
.auth-form-top strong { color: var(--ink); font-weight: 700; }
.auth-form-top a { color: var(--red); font-weight: 600; }
.auth-form-top a:hover { text-decoration: underline; }
.auth-form-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-form-card { width: 100%; max-width: 440px; min-width: 0; }
.auth-form-card .eyebrow { color: var(--red); display: block; margin-bottom: 14px; }
.auth-form-card h2 { font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 12px; }
.auth-form-card .sub { font-size: 14px; line-height: 1.6; color: var(--ink-dim); margin-bottom: 32px; max-width: 40ch; }

/* Form primitives */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .f-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.field > label.check, .field label.check { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-dim); font-weight: 500; letter-spacing: 0; text-transform: none; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fff;
  /* M15 fix: 16px minimum so iOS Safari does not auto-zoom on focus. */
  font: 500 16px/1.4 "Manrope", sans-serif; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,45,0.1); }
.input::placeholder { color: #9a9a9a; }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group .toggle-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.input-group .toggle-eye:hover { color: var(--red); }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-dim); font-weight: 600; border-right: 1px solid var(--line); padding-right: 10px; }
.input-prefix + .input { padding-left: 62px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { appearance: none; width: 16px; height: 16px; border: 1.5px solid #bbb; border-radius: 3px; flex-shrink: 0; margin-top: 2px; position: relative; cursor: pointer; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.check a { color: var(--red); font-weight: 600; }
.check a:hover { text-decoration: underline; }

.btn-submit { width: 100%; margin-top: 20px; padding: 14px 22px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; background: var(--red); color: #fff; border-radius: 4px; cursor: pointer; transition: background 0.15s, transform 0.15s; border: none; }
.btn-submit:hover { background: var(--red-dark); }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

/* Password strength */
.strength { margin-top: 8px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-bars span { height: 3px; background: var(--line); border-radius: 2px; }
.strength[data-level="1"] .strength-bars span:nth-child(-n+1) { background: #e6802d; }
.strength[data-level="2"] .strength-bars span:nth-child(-n+2) { background: #e6c22d; }
.strength[data-level="3"] .strength-bars span:nth-child(-n+3) { background: #8fb62d; }
.strength[data-level="4"] .strength-bars span { background: var(--green); }
.strength-label { font-size: 11px; color: var(--ink-dim); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.strength-label b { color: var(--ink); }

/* Social / divider */
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-dim); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.btn-social { border: 1px solid var(--line); background: #fff; padding: 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.btn-social:hover { border-color: var(--ink); background: var(--bg-soft); }
.btn-social .ic { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

/* Footer of form */
.auth-form-foot { font-size: 12px; color: var(--ink-dim); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.auth-form-foot a:hover { color: var(--red); }
.auth-form-foot .locale { display: flex; gap: 14px; }

/* OTP input */
.otp-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 20px 0 10px; width: 100%; min-width: 0; }
.otp-row > input { width: 100% !important; min-width: 0 !important; max-width: 100%; box-sizing: border-box; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 700; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); transition: all 0.15s; }
.otp-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,45,0.1); }
.otp-row input.filled { border-color: var(--ink); background: var(--bg-soft); }

.resend { font-size: 13px; color: var(--ink-dim); display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.resend .timer { font-family: "JetBrains Mono", monospace; color: var(--ink); font-weight: 700; }
.resend a { color: var(--red); font-weight: 600; }

/* Stepper (multi-step flows like KYC) */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.stepper .step { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-dim); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.stepper .step .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; font-family: "JetBrains Mono", monospace; background: #fff; color: var(--ink-dim); }
.stepper .step.active .num { border-color: var(--red); background: var(--red); color: #fff; }
.stepper .step.active { color: var(--ink); }
.stepper .step.done .num { border-color: var(--green); background: var(--green); color: #fff; }
.stepper .step.done { color: var(--ink); }
.stepper .bar { flex: 1; height: 1.5px; background: var(--line); margin: 0 14px; }
.stepper .bar.done { background: var(--green); }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 4px; font-size: 13px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.alert strong { font-weight: 700; display: block; margin-bottom: 2px; }
.alert.info { background: #f0f6ff; border-left: 3px solid #2d6df6; color: #1a3870; }
.alert.success { background: #edf8f1; border-left: 3px solid var(--green); color: #0a5c3c; }
.alert.warn { background: #fdf6ec; border-left: 3px solid #d98717; color: #6d4610; }
.alert.error { background: #fdecef; border-left: 3px solid var(--red); color: #7a0018; }
.alert .ic { font-weight: 800; font-size: 14px; line-height: 1; padding-top: 1px; }

/* KYC upload cards */
.kyc-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.kyc-card { border: 1px solid var(--line); border-radius: 6px; padding: 20px; transition: border-color 0.15s; background: #fff; }
.kyc-card:hover { border-color: var(--ink); }
.kyc-card.done { border-color: var(--green); background: #f6fbf7; }
.kyc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kyc-card-head .ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.kyc-card-head .sub { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.kyc-card-head .state { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--bg-soft); color: var(--ink-dim); white-space: nowrap; }
.kyc-card.done .state { background: var(--green); color: #fff; }
.kyc-dropzone { margin-top: 14px; border: 1.5px dashed #d4d4d4; border-radius: 4px; padding: 20px; text-align: center; font-size: 13px; color: var(--ink-dim); cursor: pointer; transition: all 0.15s; background: #fafafa; }
.kyc-dropzone:hover { border-color: var(--red); background: #fff; }
.kyc-dropzone .big { font-size: 13px; color: var(--ink); font-weight: 700; display: block; margin-bottom: 4px; }
.kyc-file { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-soft); border-radius: 4px; font-size: 13px; }
.kyc-file .nm { flex: 1; font-weight: 600; color: var(--ink); }
.kyc-file .sz { color: var(--ink-dim); font-family: "JetBrains Mono", monospace; font-size: 11px; }
.kyc-file .rm { color: var(--red); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Profile page uses the shell wider */
.auth-shell.wide { grid-template-columns: 1fr; }
.auth-shell.wide .auth-brand { display: none; }
.auth-shell.wide .auth-form-body { align-items: flex-start; padding-top: 24px; }
.auth-shell.wide .auth-form-card { max-width: 880px; }

/* Mobile */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 28px 24px; border-right: none; border-bottom: 4px solid var(--red); }
  .auth-brand::before { font-size: 200px; bottom: -30px; right: -20px; }
  .auth-brand-body h1 { font-size: 30px; }
  .auth-brand-stats { margin-top: 28px; }
  .auth-form-wrap { padding: 24px; min-height: auto; }
  .auth-form-body { padding: 24px 0; }
  .auth-form-card h2 { font-size: 28px; }
}
