:root {
  color-scheme: light;
  --blue: #1677e8;
  --blue-deep: #0759bd;
  --cyan: #14c8c0;
  --ink: #142033;
  --muted: #6f7b8d;
  --line: #e3e9f0;
  --surface: #ffffff;
  --bg: #f5f8fc;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(42, 171, 244, .09), transparent 30%),
    radial-gradient(circle at 91% 78%, rgba(22, 200, 189, .08), transparent 27%),
    var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

button, input { font: inherit; }
.login-shell {
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 44px 24px 24px;
}

.login-card {
  width: min(970px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  background: var(--surface);
  border: 1px solid rgba(215, 225, 236, .82);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(25, 55, 94, .13), 0 3px 10px rgba(25, 55, 94, .05);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 38px 42px;
  color: #fff;
  background: linear-gradient(145deg, #073d89 0%, #0873d5 54%, #0aaab5 100%);
}
.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.ambient { position: absolute; border-radius: 50%; filter: blur(1px); }
.ambient-one { width: 250px; height: 250px; right: -110px; top: 15%; background: rgba(46, 234, 211, .22); }
.ambient-two { width: 190px; height: 190px; left: -90px; bottom: -60px; background: rgba(52, 145, 255, .45); }
.brand-lockup, .brand-copy, .decorative-mail { position: relative; z-index: 1; }
.brand-lockup { display: flex; align-items: center; }
.brand-name { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.brand-name span { color: #65f3e2; }
.brand-copy { margin-top: 84px; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand-copy .eyebrow { color: #9ef7ef; }
.brand-copy h2 { margin: 0; font-size: clamp(36px, 4vw, 48px); line-height: 1.07; letter-spacing: -2px; }
.brand-copy > p:last-child { max-width: 310px; margin: 22px 0 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.7; }
.decorative-mail { margin: auto auto 5px; width: 175px; transform: rotate(-2deg); filter: drop-shadow(0 18px 22px rgba(0, 34, 90, .25)); }
.decorative-mail svg { display: block; width: 100%; }

.form-panel { display: flex; flex-direction: column; justify-content: center; padding: 58px clamp(42px, 7vw, 84px); }
.form-logo { display: block; width: 155px; height: auto; margin: 0 0 22px; }
.form-heading .eyebrow { color: var(--blue); margin-bottom: 8px; }
.form-heading h1 { margin: 0; font-size: 34px; letter-spacing: -1.2px; }
.form-heading > p:last-child { margin: 10px 0 30px; color: var(--muted); font-size: 14px; }
.alert { display: flex; align-items: center; gap: 9px; margin: -12px 0 20px; padding: 11px 13px; border: 1px solid #f5c4c4; border-radius: 11px; color: #a82929; background: #fff6f6; font-size: 13px; }
.alert[hidden] { display: none !important; }
.alert.info { border-color: #bedafa; background: #f2f8ff; color: #2168ad; }
.alert svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.login-form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.label-row { margin-top: 20px; }
.field-wrap { position: relative; }
.field-wrap > svg { position: absolute; left: 15px; top: 50%; width: 19px; transform: translateY(-50%); fill: none; stroke: #8793a3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field-wrap input {
  width: 100%; height: 52px; padding: 0 46px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-wrap input::placeholder { color: #aab3c0; }
.field-wrap input:focus { border-color: #5da6ef; background: #fff; box-shadow: 0 0 0 4px rgba(22, 119, 232, .1); }
.password-toggle { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); border: 0; border-radius: 9px; color: #7b8796; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #eef4fb; color: var(--blue); }
.password-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed, .password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.submit-button { width: 100%; height: 52px; margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; color: white; background: linear-gradient(105deg, #126fdc, #098ad9); box-shadow: 0 10px 24px rgba(18, 111, 220, .23); font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(18, 111, 220, .28); }
.submit-button:disabled { opacity: .75; cursor: wait; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.submit-button:hover svg { transform: translateX(3px); }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 0; color: #8a95a4; font-size: 11px; }
.security-note svg { width: 15px; fill: none; stroke: #45a68e; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.noscript-note { margin: 14px 0 0; color: #a82929; font-size: 12px; text-align: center; }
.site-disclosure { width: min(850px, calc(100% - 32px)); margin: 0 auto; min-height: 76px; padding: 14px 20px 22px; display: flex; align-items: center; justify-content: center; gap: 11px; text-align: center; color: #7c8796; font-size: 11px; line-height: 1.55; }
.site-disclosure img { width: 29px; height: 29px; object-fit: contain; flex: none; }
.site-disclosure p { margin: 0; }
.site-disclosure a { color: #3778bd; font-weight: 600; text-decoration: none; }
.site-disclosure a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .login-shell { padding: 24px 16px 10px; }
  .login-card { display: block; min-height: 0; border-radius: 22px; }
  .brand-panel { display: none; }
  .form-panel { padding: 36px 28px 32px; }
  .form-logo { width: 132px; margin-bottom: 25px; }
  .form-heading h1 { font-size: 30px; }
  .site-disclosure { padding-bottom: 18px; align-items: flex-start; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .login-shell { padding-top: 22px; }
  .login-card { min-height: 555px; }
  .brand-copy { margin-top: 54px; }
  .form-panel { padding-top: 36px; padding-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
