@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400..750&display=swap');

:root {
  font: 400 1rem/1.45 "DM Sans", system-ui, sans-serif;
  color: #101e3e;
  background: #edf2ff;
  --cobalt: #2146cc;
  --panel: #f8faff;
  --muted: #4d5871;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
p { margin: 0; }
a { color: #173eaa; font-weight: 660; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #173eaa; outline-offset: 3px; }

.login-shell { max-width: 1120px; margin-inline: auto; }
.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(18px, 5vw, 48px);
  border-bottom: 1px solid #b9c8ed;
}
.login-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.login-brand img { flex: none; }
.wordmark { font-size: 1.625rem; line-height: 1; }
.brand-tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.login-header a, .privacy-link, .signup a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.login-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 16px;
  padding: 20px;
}
.login-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 16px 16px 16px 62px;
  background: var(--cobalt);
  color: #fff;
}
.login-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.75rem, 8vw, 5.125rem);
  line-height: .98;
  font-weight: 680;
  letter-spacing: -.07em;
}
.hero-mark {
  position: absolute;
  z-index: -1;
  top: -86px;
  right: -54px;
  width: 235px;
  height: 235px;
  border: 32px solid #a7bcff;
  border-radius: 50% 50% 0 50%;
  transform: rotate(-32deg);
  box-shadow: 0 0 0 18px #496af0, inset 0 0 0 18px #496af0;
}

.login-panel {
  display: grid;
  align-content: center;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 16px;
  background: var(--panel);
}
form > label {
  display: block;
  margin: 12px 0 5px;
  font-weight: 620;
}
input:not([type=checkbox]) {
  width: 100%;
  min-height: 48px;
  border: 1px solid #858fa6;
  border-radius: 10px;
  background: var(--panel);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
}
input::placeholder { color: var(--muted); }
.field { position: relative; }
.field input { padding-right: 65px; }
button { font: inherit; }
.toggle {
  position: absolute;
  inset: 2px 2px 2px auto;
  min-width: 56px;
  border: 0;
  background: transparent;
  color: #173eaa;
}
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 6px 0;
  font-size: .875rem;
}
.options label, .options a { display: inline-flex; align-items: center; min-height: 44px; }
.options input { margin: 0 6px 0 0; accent-color: var(--cobalt); }
.submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 670;
}
.submit::after { content: "↗" / ""; }
.submit:disabled { opacity: .7; }
#message:not(:empty) { margin-top: 10px; color: #842438; }
.signup { margin-top: 12px; color: var(--muted); }
.privacy-link { justify-self: start; font-size: .875rem; }

@media (max-width: 650px) {
  .login-content { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .login-hero { min-height: 178px; border-bottom-left-radius: 36px; }
  .hero-mark { top: -134px; right: -91px; }
}
