:root {
  --ink: #182235;
  --muted: #6b7890;
  --line: rgba(111, 137, 173, 0.24);
  --blue: #3478f6;
  --blue-dark: #245fc9;
  --cyan: #45cce8;
  --violet: #9a6df5;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eef6ff; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 22% 10%, rgba(112, 210, 255, .34), transparent 34%),
    radial-gradient(circle at 90% 78%, rgba(190, 127, 255, .25), transparent 34%),
    linear-gradient(135deg, #f6faff, #f7f3ff 54%, #eafcff);
  overflow-x: hidden;
}

.login-orb { position: fixed; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .46; }
.login-orb-a { width: 420px; height: 420px; left: -190px; bottom: -170px; background: #72e6ff; }
.login-orb-b { width: 480px; height: 480px; right: -190px; top: -200px; background: #c390ff; }
.login-layout { width: min(1120px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .72fr); gap: clamp(50px, 8vw, 110px); align-items: center; padding: 56px 0; }
.login-intro { max-width: 650px; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 62px; }
.login-brand span, .login-mark { display: grid; place-items: center; color: white; font-weight: 900; background: linear-gradient(145deg, var(--blue), var(--violet)); box-shadow: 0 12px 30px rgba(72, 102, 228, .24); }
.login-brand span { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
.login-brand strong { font-size: 19px; }
.login-kicker { margin: 0 0 16px; color: var(--blue-dark); font-size: 12px; font-weight: 800; letter-spacing: .17em; }
h1 { max-width: 650px; margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.03; letter-spacing: -.045em; }
.login-description { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.login-card { position: relative; padding: 34px; border: 1px solid rgba(133, 153, 181, .28); border-radius: 24px; background: rgba(255, 255, 255, .78); box-shadow: 0 30px 80px rgba(52, 78, 119, .14), 0 2px 8px rgba(52, 78, 119, .05); backdrop-filter: blur(24px); }
.login-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -70px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(98, 199, 255, .32), transparent 68%); pointer-events: none; }
.login-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.login-mark { width: 46px; height: 46px; border-radius: 14px; font-size: 20px; }
.login-card-head p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.login-card h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; }
input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d2ddea; border-radius: 12px; outline: none; color: var(--ink); background: rgba(255, 255, 255, .9); font: inherit; transition: border .18s ease, box-shadow .18s ease; }
input:focus { border-color: #7da8f8; box-shadow: 0 0 0 4px rgba(52, 120, 246, .12); }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-field button { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--blue-dark); background: #edf4ff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.login-submit { height: 50px; margin-top: 4px; border: 0; border-radius: 12px; color: white; background: linear-gradient(135deg, #347cf7, #6968eb); box-shadow: 0 12px 28px rgba(58, 104, 224, .24); font: inherit; font-weight: 800; cursor: pointer; transition: transform .16s ease, opacity .16s ease; }
.login-submit:hover { transform: translateY(-1px); }
.login-submit:disabled { opacity: .62; cursor: wait; transform: none; }
.login-error { margin: -5px 0 0; padding: 10px 12px; border: 1px solid #f3c4cb; border-radius: 10px; color: #a82b3c; background: #fff1f3; font-size: 12px; font-weight: 600; }
.login-footnote { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

@media (max-width: 820px) {
  .login-layout { width: min(520px, calc(100% - 28px)); grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .login-intro { text-align: center; }
  .login-brand { justify-content: center; margin-bottom: 32px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .login-description { font-size: 15px; }
  .login-card { padding: 26px 22px; }
}
