:root {
  color-scheme: dark;
  --bg: #07111b;
  --surface: #0d1a26;
  --surface-soft: #0a1722;
  --border: #203345;
  --text: #edf4f8;
  --muted: #a7b8c5;
  --subtle: #7f95a5;
  --primary: #1768e8;
  --primary-hover: #2d78ed;
  --primary-soft: rgba(40, 120, 255, .13);
  --positive: #25ce88;
  --negative: #ff6675;
  --shadow: rgba(0, 0, 0, .34);
  --sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --border: #d5e0e8;
  --text: #102333;
  --muted: #536a7a;
  --subtle: #718593;
  --primary: #1768e8;
  --primary-hover: #0f5bce;
  --primary-soft: rgba(23, 104, 232, .09);
  --positive: #087f54;
  --negative: #c93647;
  --shadow: rgba(18, 42, 60, .12);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; } button { color: inherit; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) minmax(520px, 1.05fr); }
.auth-intro { min-height: 100vh; padding: 40px clamp(38px, 6vw, 88px); display: flex; flex-direction: column; position: relative; overflow: hidden; background-color: #081725; background-image: linear-gradient(rgba(66, 116, 151, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(66, 116, 151, .07) 1px, transparent 1px), radial-gradient(circle at 20% 80%, rgba(40,120,255,.16), transparent 42%); background-size: 34px 34px, 34px 34px, auto; color: #edf4f8; border-right: 1px solid var(--border); }
.auth-intro::after { content: "NSE"; position: absolute; right: -18px; bottom: 40px; color: rgba(255,255,255,.025); font-size: 180px; font-weight: 900; letter-spacing: -.08em; pointer-events: none; }
.auth-brand { z-index: 1; width: fit-content; display: inline-flex; align-items: center; gap: 12px; color: #edf4f8; text-decoration: none; font-size: 18px; font-weight: 850; letter-spacing: .055em; }
.auth-brand strong { color: #4389ff; }
.brand-mark { width: 31px; height: 31px; padding: 6px; display: flex; align-items: flex-end; gap: 3px; border: 1px solid #4389ff; border-radius: 4px; background: rgba(40,120,255,.13); transform: skew(-7deg); }
.brand-mark i { display: block; width: 4px; background: #4389ff; border-radius: 1px 1px 0 0; }.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 15px; }.brand-mark i:nth-child(3) { height: 11px; }
.intro-copy { z-index: 1; max-width: 620px; margin: auto 0; padding: 65px 0; }
.eyebrow { color: #25ce88; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.intro-copy h1 { margin: 17px 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
.intro-copy h1 em { color: #4389ff; font-style: normal; font-weight: 650; }
.intro-copy > p { max-width: 560px; margin: 0; color: #a7b8c5; font-size: 16px; line-height: 1.7; }
.intro-copy ul { margin: 32px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.intro-copy li { display: flex; align-items: center; gap: 11px; color: #a7b8c5; font-size: 13px; }
.intro-copy li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(37,206,136,.1); color: #25ce88; font-size: 11px; font-weight: 800; }
.auth-disclaimer { z-index: 1; margin: 0; color: #7f95a5; font-size: 11px; font-weight: 650; }
.auth-panel { position: relative; padding: 50px 28px; display: grid; place-items: center; background-image: radial-gradient(circle at 80% 20%, var(--primary-soft), transparent 30%); }
.theme-toggle { position: absolute; top: 27px; right: 29px; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-soft); color: var(--text); }
.auth-card { width: min(100%, 470px); padding: 33px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 24px 70px var(--shadow); }
.auth-tabs { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.auth-tabs button.active { background: var(--primary-soft); color: var(--primary); }
.form-heading { margin: 30px 0 24px; }.form-heading span { color: var(--positive); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.form-heading h2 { margin: 7px 0 6px; font-size: 28px; letter-spacing: -.025em; }.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
#auth-form { display: grid; gap: 17px; }.field { display: grid; gap: 7px; }.field label { font-size: 13px; font-weight: 750; }
.field input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid var(--border); border-radius: 7px; outline: 0; background: var(--surface-soft); color: var(--text); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }.field input::placeholder { color: var(--subtle); }.field small { color: var(--subtle); font-size: 11px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }.show-password { padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 750; cursor: pointer; }
.form-error { min-height: 21px; margin: -2px 0 -4px; color: var(--negative); font-size: 12px; font-weight: 650; }
.submit-button { height: 49px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 25%, transparent); }
.submit-button:hover { background: var(--primary-hover); }.submit-button:disabled { opacity: .65; cursor: wait; }
.switch-copy { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; }.switch-copy button { padding: 0; border: 0; background: transparent; color: var(--primary); font-weight: 750; cursor: pointer; }
@media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; }.auth-intro { min-height: auto; padding: 27px 24px; }.intro-copy { padding: 52px 0 34px; }.intro-copy h1 { font-size: clamp(38px, 10vw, 56px); }.auth-disclaimer { display: none; }.auth-panel { min-height: 650px; padding: 70px 18px 35px; } }
@media (max-width: 520px) { .auth-intro { padding: 22px 18px; }.intro-copy { padding: 39px 0 18px; }.intro-copy > p, .intro-copy ul { display: none; }.auth-panel { min-height: auto; padding: 68px 13px 28px; align-items: start; }.theme-toggle { top: 15px; right: 15px; }.auth-card { padding: 23px 18px; }.form-heading h2 { font-size: 25px; } }
