:root {
  --ink: #191a31;
  --muted: #85899a;
  --mint: #8a78ff;
  --mint-deep: #705cff;
  --coral: #ea4ead;
  --line: #e0e2ea;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  background: #f7f8fc;
}

button, input { font: inherit; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, .95fr); }

.brand-side {
  position: relative;
  overflow: hidden;
  padding: 42px 7vw;
  color: white;
  background:
    radial-gradient(circle at 17% 12%, rgba(234,78,173,.42), transparent 29%),
    radial-gradient(circle at 86% 80%, rgba(112,92,255,.42), transparent 34%),
    linear-gradient(145deg, #191a31 0%, #2b244c 55%, #4d3ca9 100%);
}

.brand-side::after {
  position: absolute; inset: auto -12vw -30vh auto; width: 58vw; height: 58vw;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: "";
}

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 24px; font-weight: 700; }
.brand em { width: 1px; height: 22px; background: rgba(255,255,255,.45); }
.brand small { font-size: 10px; letter-spacing: .2em; font-weight: 600; opacity: .8; }
.brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: rgba(255,255,255,.16); }
.brand-mark i { display: block; width: 2px; border-radius: 3px; background: currentColor; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 9px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 17px; }
.brand-mark i:nth-child(3) { height: 25px; }

.brand-copy { position: relative; z-index: 2; margin-top: 23vh; }
.eyebrow, .step-label { font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.eyebrow { color: rgba(255,255,255,.72); }
.brand-copy h1 { margin: 22px 0 20px; font-size: clamp(48px, 5vw, 76px); line-height: 1.13; letter-spacing: -.045em; }
.brand-copy h1 b { color: #ff9fd8; font-weight: inherit; }
.brand-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 17px; }

.sound-orbit { position: absolute; z-index: 1; right: 6vw; bottom: 10vh; display: flex; align-items: center; gap: 8px; transform: rotate(-8deg); opacity: .35; }
.sound-orbit span { width: 5px; height: 80px; border-radius: 10px; background: white; }
.sound-orbit span:nth-child(2), .sound-orbit span:nth-child(6) { height: 118px; }
.sound-orbit span:nth-child(3), .sound-orbit span:nth-child(5) { height: 155px; }
.sound-orbit span:nth-child(4) { height: 205px; }

.form-side { display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 80% 12%, rgba(112,92,255,.08), transparent 27%), #f7f8fc; }
.login-card { width: min(450px, 100%); padding: 38px; border: 1px solid #e0e2ea; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 16px 42px rgba(30,34,64,.08); }
.mobile-brand { display: none; }
.step-label { color: var(--mint-deep); }
.login-card h2 { margin: 13px 0 8px; font-size: 35px; letter-spacing: -.03em; }
.login-card > p:not(.error) { margin: 0 0 36px; color: var(--muted); }
.login-card label { display: block; margin: 0 0 20px; }
.login-card label > span { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: 16px; top: 50%; width: 20px; transform: translateY(-50%); fill: none; stroke: #8ba09d; stroke-width: 1.7; }
.input-wrap input { width: 100%; height: 56px; padding: 0 50px 0 48px; border: 1px solid var(--line); border-radius: 14px; outline: 0; color: var(--ink); background: white; transition: .2s ease; }
.input-wrap input::placeholder { color: #acbab8; }
.input-wrap input:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(112,92,255,.10); }
.input-wrap button { position: absolute; right: 11px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 10px; color: #8ba09d; background: transparent; cursor: pointer; }
.input-wrap button:hover { color: var(--mint-deep); background: #f1eeff; }
.input-wrap button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.input-wrap button.visible svg { opacity: .55; }
.error { margin: -6px 0 15px; padding: 11px 13px; border-radius: 10px; color: #c94f48; background: #fff0ee; font-size: 13px; }
.submit { width: 100%; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; border: 0; border-radius: 14px; color: white; background: linear-gradient(110deg, #ea4ead, #705cff); font-weight: 700; box-shadow: 0 12px 28px rgba(112,92,255,.22); cursor: pointer; transition: .2s ease; }
.submit:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(112,92,255,.28); }
.submit:disabled { cursor: wait; opacity: .7; transform: none; }
.submit svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #91a29f; font-size: 12px; }
.security svg { width: 15px; fill: none; stroke: var(--mint-deep); stroke-width: 1.7; }

@media (max-width: 800px) {
  .login-shell { display: block; min-height: 100vh; }
  .brand-side { display: none; }
  .form-side { min-height: 100vh; padding: 28px 20px; }
  .login-card { padding: 28px 22px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; font-size: 21px; }
  .mobile-brand .brand-mark { color: white; background: linear-gradient(135deg, var(--coral), var(--mint-deep)); }
  .login-card h2 { font-size: 30px; }
}
