/*
 * byd-cms-auth.css — split-screen auth template + shared product-page helpers.
 *
 * Ported from website/handoff-v2/auth/auth.css (Wave 3 Agent L, 2026-04-18).
 * Design tokens (--red, --ink, --line, --bg-soft, etc.) come from the
 * byd-design-system mu-plugin; we only redefine them as fallbacks so the
 * stylesheet is still useful if the mu-plugin ever fails to enqueue first.
 */

:root {
  --red: #e6002d;
  --red-dark: #b8001f;
  --black: #0a0a0a;
  --ink: #141414;
  --ink-2: #333;
  --ink-dim: #6b6b6b;
  --line: #e8e8e8;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --green: #1fa362;
}

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

.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; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.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); }

.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); gap: 16px; flex-wrap: wrap; }
.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; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.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
 * =================================================================== */
.byd-cms-template .field,
.auth-form-card .field,
.byd-auth-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.byd-auth-form .field > label, .f-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.byd-auth-form .field > label.check, .byd-auth-form .field label.check { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.byd-auth-form .field .hint { font-size: 12px; color: var(--ink-dim); font-weight: 500; letter-spacing: 0; text-transform: none; }
.byd-auth-form .input, .byd-auth-form .select, .byd-auth-form .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;
}
.byd-auth-form .input:focus, .byd-auth-form .select:focus, .byd-auth-form .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,0,45,0.1); }
.byd-auth-form .input::placeholder { color: #9a9a9a; }
.byd-auth-form .input-group { position: relative; }
.byd-auth-form .input-group .input { padding-right: 54px; }
.byd-auth-form .input-group .toggle-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; display: flex; align-items: center; justify-content: center; color: var(--ink-dim); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; background: transparent; border: 0; cursor: pointer; }
.byd-auth-form .input-group .toggle-eye:hover { color: var(--red); }
.byd-auth-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.byd-auth-form .check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.byd-auth-form .check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid #bbb; border-radius: 3px; flex-shrink: 0; margin-top: 2px; position: relative; cursor: pointer; }
.byd-auth-form .check input[type="checkbox"]:checked { background: var(--red); border-color: var(--red); }
.byd-auth-form .check input[type="checkbox"]:checked::after { content: '\2713'; position: absolute; inset: 0; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.byd-auth-form .check a { color: var(--red); font-weight: 600; }

.byd-auth-form .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; border: none; }
.byd-auth-form .btn-submit:hover { background: var(--red-dark); }
.byd-auth-form .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); }

/* Divider + social */
.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; 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; text-decoration: none; }
.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; }

/* Official Google "Sign in with Google" button per Google brand guidelines */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 16px; background: #fff; border: 1px solid #dadce0; border-radius: 4px; color: #1f1f1f; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.25px; text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s, box-shadow 0.18s; }
.btn-google:hover { background: #f8faff; border-color: #d2e3fc; box-shadow: 0 1px 2px rgba(60,64,67,0.08); }
.btn-google:focus-visible { outline: 2px solid #1a73e8; outline-offset: 1px; }
.btn-google:active { background: #f1f3f4; }
.btn-google .g-logo { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-google .g-label { line-height: 1; }

.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; flex-wrap: wrap; }
.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%; }
.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; flex-wrap: wrap; gap: 10px; }
.resend .timer { font-family: "JetBrains Mono", monospace; color: var(--ink); font-weight: 700; }
.resend a { color: var(--red); font-weight: 600; }

/* Stepper */
.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; background: #fff; transition: border-color 0.15s; }
.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; background: #fafafa; transition: all 0.15s; display: block; }
.kyc-dropzone:hover { border-color: var(--red); background: #fff; }
.kyc-dropzone.is-drag { border-color: var(--red); background: #fff4f6; }
.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; }

/* Profile page (wide shell, no brand panel) */
.prof-shell { min-height: 100vh; background: var(--bg-soft); }
.prof-top { background: #fff; border-bottom: 1px solid var(--line); }
.prof-top-inner { max-width: 1080px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prof-top-inner .logo-img { height: 32px; }
.prof-top-inner .crumbs { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.prof-top-inner .who { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.prof-top-inner .who .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.prof-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 32px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.prof-sidenav { position: sticky; top: 24px; align-self: start; }
.prof-sidenav h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; padding-left: 12px; }
.prof-sidenav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; padding: 0; }
.prof-sidenav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 4px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.prof-sidenav a.active { background: var(--ink); color: #fff; font-weight: 600; }
.prof-sidenav a:hover:not(.active) { background: #fff; color: var(--red); }

.prof-main { display: flex; flex-direction: column; gap: 20px; }
.prof-head { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.prof-head .big-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--red), #990020); color: #fff; font-size: 32px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.prof-head .info h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.prof-head .info .sub { font-size: 13px; color: var(--ink-dim); margin-bottom: 10px; }
.prof-head .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.prof-head .badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--bg-soft); color: var(--ink-2); }
.prof-head .badge.verified { background: var(--green); color: #fff; }
.prof-head .badge.diamond { background: var(--ink); color: #fff; }
.prof-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.prof-card-h { padding: 20px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.prof-card-h h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.prof-card-h .sub { font-size: 12px; color: var(--ink-dim); max-width: 36ch; text-align: right; }
.prof-card-b { padding: 28px; }
.danger-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 20px; flex-wrap: wrap; }
.danger-row:last-child { border-bottom: 0; }
.danger-row .dr-txt { font-size: 13px; }
.danger-row .dr-txt b { display: block; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.danger-row .dr-txt span { color: var(--ink-dim); }
.danger-row button, .danger-row a.btn-ghost { padding: 9px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: #fff; cursor: pointer; color: var(--ink); text-decoration: none; }
.danger-row button:hover { border-color: var(--ink); }
.danger-row button.danger { border-color: var(--red); color: var(--red); }
.danger-row button.danger:hover { background: var(--red); color: #fff; }

@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; }
  .prof-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
}

/* ===================================================================
 * Product v2 pages — investment / financing / giveaway shared helpers.
 * The templates ship inline <style> for the section-specific parts so
 * this file stays small. Here we only define cross-page primitives.
 * =================================================================== */

.byd-cms-investment .inv-nav,
.byd-cms-financing .fin-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.byd-cms-investment .inv-nav .inv-nav-inner,
.byd-cms-financing .fin-nav-inner { display: flex; gap: 0; overflow-x: auto; }
.byd-cms-investment .inv-nav a,
.byd-cms-financing .fin-nav a { padding: 18px 22px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-dim); border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.15s; text-decoration: none; }
.byd-cms-investment .inv-nav a.active,
.byd-cms-financing .fin-nav a.active { color: var(--ink); border-color: var(--red); }

.byd-accordion .byd-accordion-q { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 16px; font-weight: 700; }
.byd-accordion .byd-accordion-q::after { content: '+'; color: var(--red); font-size: 22px; transition: transform 0.15s; }
.byd-accordion .byd-accordion-item.open .byd-accordion-q::after { transform: rotate(45deg); }
.byd-accordion .byd-accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.25s, padding 0.25s; color: var(--ink-dim); line-height: 1.7; font-size: 14px; }
.byd-accordion .byd-accordion-item.open .byd-accordion-a { max-height: 600px; padding-bottom: 20px; }
.byd-accordion .byd-accordion-item { border-bottom: 1px solid var(--line); }

/* Countdown (giveaway) */
.byd-countdown { display: flex; gap: 18px; }
.byd-countdown .cd-cell { min-width: 72px; text-align: center; padding: 16px 10px; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; background: rgba(255,255,255,0.02); }
.byd-countdown .cd-n { font-family: "JetBrains Mono", monospace; font-size: 32px; font-weight: 800; color: #fff; }
.byd-countdown .cd-l { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* Thank-you tiny banner */
.byd-inline-ok { padding: 14px 16px; background: #edf8f1; border-left: 3px solid var(--green); color: #0a5c3c; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
