:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #102044;
  background: #f3f7fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 85, 217, .13), transparent 28rem),
    radial-gradient(circle at 88% 82%, rgba(0, 167, 196, .12), transparent 26rem),
    #f5f8fd;
}

.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
.login-card {
  width: min(100%, 410px);
  padding: 38px;
  border: 1px solid #dbe4f2;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 55px rgba(24,57,117,.14);
}

.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #1455d9, #357bf0); box-shadow: 0 8px 20px rgba(20,85,217,.24); font-weight: 800; }
.eyebrow { margin: 28px 0 8px; color: #1455d9; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.intro { margin: 12px 0 28px; color: #64718a; line-height: 1.65; }
label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 700; }
.password-row { position: relative; }
input { width: 100%; height: 50px; padding: 0 66px 0 14px; border: 1px solid #cbd7e8; border-radius: 12px; background: #fbfdff; color: #102044; font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus { outline: none; border-color: #1455d9; box-shadow: 0 0 0 3px rgba(20,85,217,.14); }
.toggle { position: absolute; top: 7px; right: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #52617c; cursor: pointer; }
.toggle:hover { background: #edf3ff; color: #1455d9; }
.submit { width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 12px; color: white; background: #1455d9; font: inherit; font-weight: 750; cursor: pointer; box-shadow: 0 8px 18px rgba(20,85,217,.22); }
.submit:hover { background: #0d47bd; }
.submit:disabled { opacity: .65; cursor: wait; }
.status { min-height: 22px; margin: 14px 0 0; color: #b12637; font-size: .88rem; line-height: 1.5; text-align: center; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20,85,217,.18); }

@media (min-width: 700px) {
  :root { font-size: 18px; }
  .login-card { width: min(100%, 520px); padding: 48px; border-radius: 26px; }
  .brand-mark { width: 56px; height: 56px; }
  input, .submit { height: 56px; }
  .toggle { top: 4px; right: 4px; min-width: 52px; height: 48px; font: inherit; font-size: .85rem; }
}

@media (max-width: 480px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 28px 22px; border-radius: 18px; }
}
