:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ecf7f2;
  background: #061913;
  --bg: #061913;
  --bg-soft: #0a211b;
  --panel: rgba(10, 42, 34, .82);
  --panel-strong: rgba(12, 49, 40, .94);
  --panel-muted: rgba(15, 56, 46, .58);
  --line: rgba(118, 226, 194, .22);
  --line-strong: rgba(118, 226, 194, .44);
  --text: #ecf7f2;
  --muted: #a8bbb4;
  --muted-2: #7e968e;
  --accent: #33d0a5;
  --accent-2: #16ad85;
  --accent-soft: #7cf0cd;
  --danger: #ff8f86;
  --shadow: 0 30px 90px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 205, 157, .18), transparent 32rem),
    radial-gradient(circle at 102% 36%, rgba(31, 163, 128, .12), transparent 28rem),
    linear-gradient(180deg, #061b16 0%, #071b16 46%, #061511 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 70%);
}

a { color: var(--accent-soft); text-underline-offset: 4px; }
a:hover { color: #a4f8de; }

.account {
  position: relative;
  z-index: 1;
  width: min(92%, 580px);
  margin: 0 auto;
  padding: 32px 0 56px;
}
.account-login { width: min(92%, 980px); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border: 1px solid rgba(122, 241, 205, .35);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(94, 238, 194, .2), rgba(19, 102, 82, .13));
  box-shadow: inset 0 0 0 6px rgba(62, 211, 167, .08), 0 10px 30px rgba(0, 0, 0, .12);
}
.brand-mark svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: #b3ffe7;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-copy { display: block; line-height: 1; }
.brand-copy strong {
  display: block;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -1.5px;
  font-weight: 760;
}
.brand-copy small {
  display: block;
  margin-top: 9px;
  color: #a8bbb4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.6px;
}
.header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: rgba(10, 45, 36, .5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.header-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-link:hover {
  color: var(--text);
  border-color: rgba(124, 240, 205, .7);
  background: rgba(20, 84, 67, .65);
  transform: translateY(-1px);
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  align-items: center;
  gap: 36px;
  padding: 58px 10px 42px;
}
.login-hero-copy { max-width: 570px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 19px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8ddcf;
  background: rgba(7, 38, 30, .58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-kicker svg {
  width: 15px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-linecap: round;
}
.login-hero h1 {
  margin: 0;
  max-width: 580px;
  font-size: clamp(46px, 7.4vw, 76px);
  line-height: .98;
  letter-spacing: -4px;
  font-weight: 780;
}
.login-hero p {
  max-width: 560px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.48;
}
.device-art {
  position: relative;
  justify-self: end;
  width: min(100%, 390px);
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .25));
}
.device-art::before {
  content: "";
  position: absolute;
  inset: 20% 12%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(45, 213, 164, .13);
  filter: blur(45px);
}
.device-art svg { display: block; width: 100%; height: auto; }

.card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(13, 52, 42, .92), rgba(8, 32, 26, .96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -130px;
  top: -140px;
  border-radius: 50%;
  background: rgba(55, 214, 168, .06);
  pointer-events: none;
}
.login-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 38px 48px 36px;
}
.secure-chip {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 18px 24px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(112, 230, 193, .18);
  border-radius: 15px;
  background: rgba(9, 42, 34, .72);
  color: #d8f8ed;
}
.secure-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: rgba(61, 217, 170, .11);
}
.secure-icon svg {
  width: 20px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-linejoin: round;
}
.secure-chip strong,
.secure-chip small { display: block; }
.secure-chip strong { font-size: 11px; }
.secure-chip small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }

.card h1 {
  margin: 0 0 9px;
  color: #f3fbf7;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 760;
  letter-spacing: -1.3px;
}
.card h2 { margin-top: 26px; font-size: 21px; letter-spacing: -.4px; }
.card p,
.card li { color: #b1c4bc; line-height: 1.58; }
.card > h1 + p { margin-top: 0; margin-bottom: 27px; font-size: 13px; }
.card > h1 + p a { font-weight: 700; }
.message {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(124, 240, 205, .2);
  border-radius: 12px;
  background: rgba(51, 208, 165, .08);
}

.card form p { margin: 0; }
.card label {
  display: block;
  margin: 0 0 8px;
  color: #eaf6f1;
  font-size: 13px;
  font-weight: 700;
}
input:not([type=checkbox]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0 0 19px;
  padding: 13px 15px;
  border: 1px solid rgba(174, 220, 205, .55);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(3, 22, 17, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder,
textarea::placeholder { color: #718780; opacity: 1; }
input:not([type=checkbox]):hover,
select:hover,
textarea:hover { border-color: rgba(174, 220, 205, .78); }
input:not([type=checkbox]):focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(4, 26, 20, .6);
  box-shadow: 0 0 0 4px rgba(51, 208, 165, .12);
}
input[type=checkbox] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}
.helptext {
  display: block;
  margin: -9px 0 21px;
  color: var(--muted);
  font-size: 12px;
}
.helptext a { font-weight: 650; }
.page-login form p:has(#id_remember) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 17px;
}
.page-login form p:has(#id_remember) label { margin: 0; font-weight: 600; }
.page-login #id_remember { order: -1; }

button,
.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #031a13;
  background: linear-gradient(135deg, #5be6bf, #20bd92 55%, #17a77f);
  box-shadow: 0 12px 34px rgba(19, 172, 130, .14), inset 0 1px 0 rgba(255,255,255,.28);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
button:hover,
.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(19, 172, 130, .18), inset 0 1px 0 rgba(255,255,255,.3);
}
button:active,
.button:active { transform: translateY(0); }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(124, 240, 205, .9);
  outline-offset: 3px;
}
.page-login .card form[action="/accounts/login/"] > button[type=submit] {
  width: 100%;
  margin: 7px 0 0;
  font-size: 15px;
}
.card hr {
  height: 1px;
  margin: 25px 0 15px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 210, 191, .35), transparent);
}
#passkey_login {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(154, 218, 198, .42);
  color: #eaf7f2;
  background: rgba(6, 29, 23, .44);
  box-shadow: none;
}
#passkey_login:hover {
  border-color: rgba(124, 240, 205, .72);
  background: rgba(16, 63, 51, .58);
  filter: none;
}

.trust-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(125, 211, 185, .13);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a9bdb5;
  font-size: 11px;
  line-height: 1.35;
}
.trust-icon {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(88, 224, 183, .16);
  border-radius: 50%;
  background: rgba(51, 208, 165, .08);
}
.trust-icon svg {
  width: 20px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
  margin: 25px 5px;
  color: var(--muted);
  font-size: 12px;
}
.account-nav a { color: #8de6ca; font-weight: 600; }

.download-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  width: min(100%, 820px);
  min-height: 78px;
  margin: 0 auto;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  color: #e9f7f2;
  background: linear-gradient(120deg, rgba(13, 60, 48, .78), rgba(8, 35, 28, .78));
  box-shadow: 0 18px 50px rgba(0,0,0,.1);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.download-cta:hover {
  color: #f3fffb;
  border-color: rgba(115, 236, 200, .48);
  background: linear-gradient(120deg, rgba(16, 78, 61, .86), rgba(10, 45, 36, .86));
  transform: translateY(-1px);
}
.download-cta-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(51, 208, 165, .25), rgba(24, 128, 99, .25));
}
.download-cta-icon svg {
  width: 24px;
  fill: none;
  stroke: #a2f8dd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-cta-copy strong,
.download-cta-copy small { display: block; }
.download-cta-copy strong { font-size: 14px; }
.download-cta-copy small { margin-top: 4px; color: #97aaa3; font-size: 10px; line-height: 1.4; }
.download-cta-arrow { color: var(--accent-soft); font-size: 25px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 0 4px;
  color: #70857d;
  font-size: 10px;
  text-align: center;
}

ul.errorlist {
  margin: 0 0 14px;
  padding: 10px 14px 10px 31px;
  border: 1px solid rgba(255, 143, 134, .28);
  border-radius: 12px;
  color: #ffaaa3;
  background: rgba(122, 35, 30, .12);
}
img { max-width: 100%; }

@media (max-width: 780px) {
  .account { width: min(92%, 620px); padding-top: 24px; }
  .account-login { width: min(92%, 660px); }
  .login-hero { grid-template-columns: 1fr; gap: 24px; padding: 48px 2px 30px; }
  .login-hero-copy { max-width: 100%; }
  .login-hero h1 { letter-spacing: -3px; }
  .device-art { justify-self: center; width: min(82%, 360px); margin-top: -8px; }
  .login-card { padding: 30px 28px; }
}

@media (max-width: 520px) {
  .account { width: calc(100% - 34px); padding: 20px 0 42px; }
  .site-header { min-height: 54px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 27px; height: 27px; }
  .brand-copy strong { font-size: 26px; letter-spacing: -1.2px; }
  .brand-copy small { margin-top: 7px; font-size: 7px; letter-spacing: 2.8px; }
  .header-link { min-height: 38px; padding: 0 11px; font-size: 11px; border-radius: 12px; }
  .header-link span { display: none; }
  .login-hero { padding: 39px 0 25px; gap: 18px; }
  .hero-kicker { margin-bottom: 15px; font-size: 9px; }
  .login-hero h1 { font-size: clamp(44px, 14vw, 62px); line-height: .98; letter-spacing: -2.8px; }
  .login-hero p { margin-top: 16px; font-size: 17px; line-height: 1.48; }
  .device-art { width: min(100%, 330px); margin-top: -2px; }
  .card,
  .login-card { padding: 25px 21px; border-radius: 22px; }
  .secure-chip { float: none; width: fit-content; margin: 0 0 18px; }
  .card h1 { font-size: 31px; }
  input:not([type=checkbox]), select, textarea { min-height: 50px; border-radius: 13px; }
  .trust-grid { grid-template-columns: 1fr; gap: 11px; }
  .trust-item br { display: none; }
  .trust-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .account-nav { gap: 8px 15px; margin: 22px 0; font-size: 11px; }
  .download-cta { min-height: 72px; padding: 13px; border-radius: 17px; }
  .download-cta-icon { width: 42px; height: 42px; }
  .download-cta-copy strong { font-size: 13px; }
  .download-cta-copy small { font-size: 9px; }
  footer { flex-direction: column; align-items: center; gap: 6px; margin-top: 28px; }
}

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