:root {
  color-scheme: dark;
  --bg: #060910;
  --panel: rgba(13, 19, 31, 0.9);
  --line: rgba(150, 176, 210, 0.16);
  --text: #f2f7ff;
  --muted: #91a0b6;
  --mint: #55e6cf;
  --blue: #6ca7ff;
  --danger: #ff6f87;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, #18243b 0, var(--bg) 48%);
}
.ambient { position: fixed; border-radius: 999px; filter: blur(110px); opacity: .2; pointer-events: none; }
.ambient-one { width: 430px; height: 430px; background: var(--mint); top: -230px; right: -80px; }
.ambient-two { width: 520px; height: 520px; background: #375bff; bottom: -350px; left: -180px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; position: relative; }
.login-card {
  width: min(100%, 470px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(20, 29, 46, .94), var(--panel));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(26px);
}
.brand-mark { width: 58px; height: 58px; border: 1px solid rgba(85, 230, 207, .45); border-radius: 19px; display: grid; place-items: center; margin-bottom: 27px; position: relative; background: rgba(85, 230, 207, .06); }
.brand-mark i { width: 27px; height: 27px; border: 2px solid var(--mint); border-radius: 50%; }
.brand-mark b { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; top: 12px; box-shadow: 0 0 15px var(--mint); }
.eyebrow { color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { font-size: clamp(28px, 6vw, 38px); letter-spacing: -.04em; margin: 10px 0 12px; }
.lead { color: var(--muted); line-height: 1.65; margin: 0 0 28px; }
form label { display: block; color: #bdc9da; font-size: 12px; font-weight: 750; margin: 0 0 9px; }
.code-field { display: flex; border: 1px solid var(--line); border-radius: 15px; background: rgba(3, 7, 13, .7); transition: .2s ease; }
.code-field:focus-within { border-color: rgba(85, 230, 207, .7); box-shadow: 0 0 0 4px rgba(85, 230, 207, .08); }
.code-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); padding: 16px; font: inherit; letter-spacing: .04em; }
.code-field button { border: 0; color: var(--muted); background: transparent; padding: 0 15px; font-weight: 700; cursor: pointer; }
.submit-button { width: 100%; margin-top: 14px; border: 0; border-radius: 15px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(110deg, var(--mint), #69baf7); color: #031014; font: inherit; font-weight: 850; cursor: pointer; box-shadow: 0 14px 35px rgba(85, 230, 207, .15); }
.submit-button:disabled { opacity: .5; cursor: wait; }
.submit-button b { font-size: 20px; }
.notice { border: 1px solid rgba(255, 111, 135, .3); background: rgba(255, 111, 135, .08); color: #ff9aac; border-radius: 13px; padding: 12px 14px; margin: 0 0 18px; font-size: 13px; line-height: 1.5; }
.notice.success { border-color: rgba(85, 230, 207, .3); background: rgba(85, 230, 207, .08); color: var(--mint); }
.security-note { display: flex; align-items: flex-start; gap: 9px; color: #718096; font-size: 11px; line-height: 1.55; margin: 22px 0 0; }
.security-note i { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(85, 230, 207, .8); }
@media (max-width: 540px) { .login-shell { padding: 16px; } .login-card { padding: 30px 23px; border-radius: 23px; } }
