@font-face {
  font-family: Nunito;
  src: url('/assets/Nunito-Variable.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #f6f6ea;
  --muted: #b3c1b8;
  --lime: #b3ee52;
  --ink: #101915;
  --line: #506258;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.5 Nunito, system-ui, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:where(button, a, input):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: 14px;
  background: radial-gradient(ellipse at top right, #1a2a20, var(--ink) 63%);
}
.course-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 640px;
  padding: clamp(24px, 3.5vw, 64px);
  border-radius: 22px;
  background: #0a0b11;
}
.planet {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}
.planet-motion { opacity: 0; pointer-events: none; }
.planet-motion.has-frame { opacity: 1; }
.motion-toggle {
  position: absolute;
  right: clamp(18px, 2.8vw, 44px);
  bottom: clamp(18px, 2.8vw, 44px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(246 246 234 / 55%);
  border-radius: 50%;
  background: rgb(10 17 13 / 84%);
  color: var(--paper);
}
.motion-toggle:hover { border-color: var(--lime); color: var(--lime); }
.motion-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.motion-toggle .pause-icon, .motion-toggle.is-playing .play-icon { display: none; }
.motion-toggle.is-playing .pause-icon { display: block; }
.course-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
  background: linear-gradient(155deg, rgb(6 9 8 / 55%), transparent 32%),
              linear-gradient(0deg, #080d0b 0%, rgb(8 13 11 / 78%) 16%, transparent 52%);
}
.brand { display: inline-flex; border-radius: 3px; }
.brand img { display: block; width: clamp(134px, 13.3vw, 198px); height: auto; }
.motto {
  margin: 1em 0 0;
  font-size: clamp(58px, 6.4vw, 108px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.068em;
  color: var(--paper);
}
.motto em { color: var(--lime); font-style: normal; }
.account {
  width: min(75%, 440px);
  align-self: center;
  justify-self: center;
  min-width: 0;
  padding: 54px 0;
}
h1, h2 {
  margin: 0 0 30px;
  color: var(--paper);
  font-size: clamp(32px, 3.3vw, 53px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -.05em;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }
h1 em { font-weight: 530; font-style: normal; color: var(--muted); }
p { color: var(--muted); margin: 0 0 20px; }
.methods { display: grid; gap: 12px; }
.method {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 24px 1fr 8px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #213128;
  color: var(--paper);
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 750;
}
.method svg { display: block; width: 23px; height: 23px; }
.method::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
  opacity: .65;
}
#google-option { background: var(--paper); border-color: var(--paper); color: #17241c; }
.method:not(:disabled):hover { background: #30463a; border-color: #9eae9e; }
#google-option:not(:disabled):hover { background: #e2f5c9; border-color: #e2f5c9; }
.method.unavailable { opacity: .72; }
.method:disabled::after { visibility: hidden; }
.method small { display: block; font-size: 12px; font-weight: 650; }
.subtle, .back, footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.subtle:hover, .back:hover, footer a:hover { color: var(--paper); text-decoration: underline; }
.backup { margin-top: 12px; }
.back { margin-bottom: 14px; }
label { display: block; margin: 14px 0 6px; font-weight: 750; font-size: 15px; }
input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  background: #1c2922;
}
.primary {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  color: #172210;
  background: var(--lime);
  font-weight: 850;
}
.primary:hover { background: #c6fa72; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; margin-top: 8px; }
.hint, #account-status { font-size: 14px; margin: 8px 0 0; }
#account-status:empty { display: none; }
#account-status:not(:empty) { margin-top: 16px; color: var(--paper); }
#backup-panel > p { margin-bottom: 0; }
footer { border-top: 1px solid #34453b; margin-top: 26px; padding-top: 12px; }
footer a { text-decoration: none; }
@media (max-width: 760px) {
  .account-layout { display: flex; flex-direction: column; padding: 10px; }
  .course-art {
    min-height: 0;
    height: clamp(170px, 25svh, 240px);
    padding: 20px 24px;
    border-radius: 17px;
  }
  .planet { width: 78%; left: auto; right: 0; object-position: 50% 48%; }
  .course-art::after {
    background: linear-gradient(90deg, #090d0c 22.5%, rgb(9 13 12 / 88%) 32%, transparent 72%);
  }
  .brand img { width: 125px; }
  .motto { margin: 12px 0 0; font-size: clamp(35px, 7.2vw, 48px); line-height: .96; }
  .account { width: min(100% - 36px, 440px); padding: 34px 0 max(18px, env(safe-area-inset-bottom)); }
  h1, h2 { font-size: 36px; margin-bottom: 23px; }
  .method { min-height: 54px; }
  footer { margin-top: 17px; }
}
@media (max-width: 370px) {
  .account { width: calc(100% - 20px); }
  .method { padding-inline: 14px; gap: 10px; font-size: 15px; }
}
