:root {
  --ink: #17162b;
  --muted: #777586;
  --line: #e5e3eb;
  --violet: #6858ef;
  --violet-dark: #4f3edc;
  --violet-soft: #efedff;
  --green: #168361;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f7f7fb; font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(410px, .9fr) minmax(520px, 1.1fr); }
.auth-story { position: relative; display: flex; flex-direction: column; padding: 42px 50px; overflow: hidden; color: #fff; background: radial-gradient(circle at 86% 12%, #514876 0, transparent 30%), radial-gradient(circle at 10% 92%, #322c52 0, transparent 34%), #1b192d; }
.auth-story::after { content: ""; position: absolute; right: -150px; bottom: -190px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 75px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; width: fit-content; }
.brand-mark { width: 38px; height: 38px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 11px; background: linear-gradient(145deg,#806fff,#5947e5); box-shadow: 0 9px 25px rgba(87,65,224,.35); }
.brand-mark i { border-radius: 2px; background: #fff; }
.brand strong, .brand small { display: block; }.brand strong { font-family: "Manrope"; font-size: 15px; }.brand small { margin-top: 2px; color: #a8a4b8; font-size:10px; letter-spacing: .13em; text-transform: uppercase; }
.story-copy { position: relative; z-index: 1; max-width: 560px; margin: auto 0; }
.eyebrow { margin: 0; color: #a99eff; font-size:10px; font-weight: 800; letter-spacing: .15em; }.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #ff7a62; box-shadow: 0 0 0 4px rgba(255,122,98,.13); }
.story-copy h1 { max-width: 520px; margin: 19px 0; font-family: "Manrope"; font-size: clamp(37px, 4vw, 59px); line-height: 1.04; letter-spacing: -.052em; }
.story-copy > p:not(.eyebrow) { max-width: 500px; color: #aaa7b9; font-size: 14px; line-height: 1.75; }
.story-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 48px; overflow: hidden; border: 1px solid #39364c; border-radius: 14px; background: #39364c; }
.story-metrics div { padding: 17px; background: #211f34; }.story-metrics small, .story-metrics strong { display: block; }.story-metrics small { color: #868293; font-size:10px; letter-spacing: .12em; }.story-metrics strong { margin-top: 7px; font-size: 13px; }
.story-foot { position: relative; z-index: 1; margin: auto 0 0; color: #787487; font-size:10px; }
.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(440px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(31,26,70,.09); }
.card-kicker { margin: 0; color: var(--violet); font-size:10px; font-weight: 800; letter-spacing: .15em; }
.auth-card h2 { margin: 9px 0 7px; font-family: "Manrope"; font-size: 27px; letter-spacing: -.035em; }
.card-lead { margin: 0 0 27px; color: var(--muted); font-size: 12px; }
form label { display: grid; gap: 7px; margin-bottom: 15px; color: #555363; font-size: 10px; font-weight: 700; }
input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fbfbfd; font-size: 12px; transition: border .15s, box-shadow .15s; }
input:focus { border-color: #9b90f5; box-shadow: 0 0 0 4px var(--violet-soft); }
.button { min-height: 44px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.button.primary { width: 100%; color: #fff; border-color: var(--violet); background: var(--violet); box-shadow: 0 9px 22px rgba(92,72,224,.21); }.button.primary:hover { background: var(--violet-dark); }.button:disabled { opacity: .55; cursor: wait; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #aaa8b4; font-size:10px; }.divider::before,.divider::after { content:""; height: 1px; flex: 1; background: var(--line); }
#magic-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.auth-note { margin: 20px 0 0; color: var(--muted); font-size:10px; text-align: center; }
.form-message { min-height: 16px; margin: 17px 0 0; color: var(--muted); font-size: 10px; text-align: center; }.form-message[data-tone="error"] { color: #c7474e; }.form-message[data-tone="success"] { color: var(--green); }
.demo-panel { margin-top: 24px; padding: 16px; border: 1px solid #ddd8ff; border-radius: 12px; color: #4e4598; background: var(--violet-soft); }.demo-panel strong { font-size: 11px; }.demo-panel p { margin: 6px 0 12px; font-size:10px; line-height: 1.6; }
.security-note { color: #8c8997; font-size:10px; }.security-note span { margin-right: 6px; color: var(--green); }
[hidden] { display: none !important; }

/* Be Vietnam Pro typography */
*, *::before, *::after { font-family:"Be Vietnam Pro",sans-serif !important; }
body { font-size:14px; line-height:1.55; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }
.brand strong { font-size:16px; }.brand small { font-size:10px; letter-spacing:.1em; }
.eyebrow,.card-kicker { font-size:10px; letter-spacing:.11em; }
.story-copy h1 { letter-spacing:-.035em; line-height:1.08; }
.story-copy > p:not(.eyebrow) { font-size:15px; line-height:1.75; }
.story-metrics small,.story-foot,.divider,.auth-note,.security-note,.demo-panel p { font-size:10px; }
.story-metrics strong { font-size:14px; }
.auth-card h2 { font-size:28px; letter-spacing:-.025em; }.card-lead { font-size:13px; line-height:1.6; }
form label { font-size:11px; }input { height:47px; font-size:13px; }.button { min-height:46px; font-size:12px; }
.form-message,.demo-panel strong { font-size:11px; }

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 340px; padding: 30px; }
  .story-copy { margin: 70px 0 30px; }.story-copy h1 { font-size: 38px; }.story-metrics { margin-top: 28px; }.story-foot { display: none; }
  .auth-panel { padding: 28px 18px; }
}
@media (max-width: 520px) {
  .auth-story { min-height: 280px; }.story-copy { margin: 48px 0 10px; }.story-copy h1 { font-size: 31px; }.story-copy > p:not(.eyebrow), .story-metrics { display: none; }
  .auth-card { padding: 27px 20px; } #magic-form { grid-template-columns: 1fr; }
}
