:root {
  color-scheme: light;
  --ink: #25233d;
  --muted: #77758c;
  --purple: #6b56e5;
  --purple-dark: #4d3bc2;
  --line: #dedde8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: #f8f8fb; }
button, input { font: inherit; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) minmax(520px, 1.05fr); }
.login-story { padding: 34px; color: #fff; background: #f0eef9; }
.story-copy { height: 100%; min-height: calc(100vh - 68px); overflow: hidden; position: relative; padding: 42px 48px; border-radius: 30px; background: radial-gradient(circle at 85% 20%, rgba(255,154,123,.3), transparent 25%), linear-gradient(145deg, #252245 0%, #4e3fac 55%, #7459e2 100%); box-shadow: 0 30px 80px rgba(55,44,134,.22); }
.story-copy::before { content: ""; position: absolute; width: 520px; height: 520px; right: -255px; bottom: -265px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #5140c6; background: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 10px 24px rgba(20,16,68,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.3px; }
.brand small { margin-top: 2px; color: #c9c4ea; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.story-content { position: relative; z-index: 2; margin-top: clamp(90px, 15vh, 150px); max-width: 580px; }
.eyebrow { display: block; color: #8a76f1; text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 850; }
.story-content .eyebrow { color: #c9c0ff; }
.story-content h1 { margin: 15px 0 20px; font-size: clamp(40px, 4.5vw, 68px); line-height: .99; letter-spacing: -3px; }
.story-content h1 em { color: #ffb099; font-style: normal; }
.story-content p { max-width: 540px; margin: 0; color: #d4d0eb; font-size: 14px; line-height: 1.75; }
.feature-list { position: absolute; z-index: 2; left: 48px; right: 48px; bottom: 40px; display: flex; gap: 26px; flex-wrap: wrap; color: #dedaf2; font-size: 10px; }
.feature-list span { display: flex; align-items: center; gap: 8px; }
.feature-list i { color: #afa3ff; font-style: normal; font-size: 8px; }
.visual { position: absolute; width: 280px; height: 280px; right: -30px; bottom: 40px; opacity: .7; }
.ring { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; transform: rotate(18deg); }
.ring-one { inset: 25px; }.ring-two { inset: 70px -10px; transform: rotate(-35deg); }
.visual-core { position: absolute; inset: 100px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); font-size: 30px; font-weight: 900; backdrop-filter: blur(8px); }
.node { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #ffb099; box-shadow: 0 0 17px #ffb099; }.node-a { right: 37px; top: 60px; }.node-b { left: 29px; bottom: 87px; background: #b8acff; box-shadow: 0 0 17px #b8acff; }

.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 45px clamp(30px, 8vw, 120px) 25px; background: #fff; }
.login-card { width: min(440px, 100%); }
.mobile-brand { display: none; align-items: center; gap: 11px; margin-bottom: 54px; }
.login-card h2 { margin: 12px 0 8px; font-size: 38px; letter-spacing: -1.5px; }
.intro { margin: 0 0 34px; color: var(--muted); font-size: 13px; }
form { display: grid; gap: 20px; }
label > span { display: block; margin-bottom: 8px; color: #55536a; font-size: 11px; font-weight: 800; }
.field { position: relative; }
.field input { width: 100%; height: 52px; padding: 0 76px 0 44px; color: var(--ink); background: #fbfbfd; border: 1px solid var(--line); border-radius: 13px; outline: 0; transition: .18s ease; font-size: 13px; }
.field input:focus { border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px rgba(107,86,229,.1); }
.field-icon { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); color: #9693aa; font-size: 13px; font-weight: 800; }.field-icon.lock { font-size: 20px; line-height: 0; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; padding: 7px; color: var(--purple); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.form-error { padding: 12px 14px; color: #a63144; background: #fff0f2; border: 1px solid #f2cdd3; border-radius: 11px; font-size: 11px; line-height: 1.45; }
.login-button { height: 52px; margin-top: 4px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 0 21px; color: #fff; border: 0; border-radius: 13px; cursor: pointer; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); box-shadow: 0 13px 28px rgba(79,60,194,.25); font-size: 12px; font-weight: 850; transition: .18s ease; }
.login-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(79,60,194,.3); }.login-button:disabled { opacity: .65; cursor: wait; transform: none; }
.login-button b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.14); font-size: 16px; }
.security-note { margin-top: 25px; color: #858397; font-size: 10px; text-align: center; }.security-note span { color: #29906b; margin-right: 4px; }
.login-panel footer { margin-top: auto; padding-top: 45px; color: #aaa8b7; font-size: 9px; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: minmax(360px, .8fr) minmax(440px, 1.2fr); }
  .login-story { padding: 20px; }.story-copy { min-height: calc(100vh - 40px); padding: 35px; }.feature-list { left: 35px; right: 35px; }
  .story-content h1 { font-size: 44px; letter-spacing: -2px; }
  .visual { display: none; }
}
@media (max-width: 740px) {
  .login-shell { display: block; min-height: 100vh; }.login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 40px 24px 22px; }
  .mobile-brand { display: flex; }.mobile-brand .brand-mark { color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); }.mobile-brand strong { font-size: 17px; }
  .login-card h2 { font-size: 32px; }.login-panel footer { margin-top: 70px; }
}
