@font-face {
  font-family: Fredoka;
  src: url('/todo-hub/assets/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0c10;
  --panel: #141721;
  --line: #343a4b;
  --text: #fcfbfa;
  --muted: #b0b8c6;
  --accent: #ff9cc6;
  --terms-surface: var(--panel);
  --terms-text: var(--text);
  --terms-border: var(--line);
  --terms-link: var(--accent);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  padding: 0 max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 0%, #291528, transparent 34rem), var(--background);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 0 0;
  min-height: 60px;
  max-width: 66rem;
  margin: 0 auto;
  font-size: .88rem;
}

.account-header a { padding: .6rem 0; color: var(--muted); text-decoration: none; }
.account-header a:hover { color: var(--text); text-decoration: underline; }

.account-card {
  width: min(100%, 27rem);
  margin: clamp(1rem, 5vh, 3rem) auto 0;
  padding: clamp(1.25rem, 5vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3.5rem #0005;
}

.mascot {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 .9rem;
  padding: .55rem;
  border-radius: 1rem;
  background: #352036;
  object-fit: contain;
}

h1 { margin: 0 0 .5rem; font: 600 clamp(1.85rem, 7vw, 2.4rem)/1.12 Fredoka, system-ui, sans-serif; }
.intro { margin: 0 0 1.3rem; color: var(--muted); overflow-wrap: anywhere; }
form, .providers { display: grid; gap: .85rem; }
.providers { margin: 1.05rem 0; }
.providers button, .primary, .product-link, input {
  width: 100%;
  min-height: 2.8rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: inherit;
}
.providers button, .product-link, input { background: var(--background); }
.providers button:hover:not(:disabled), .product-link:hover { border-color: #89869b; }
label { display: grid; gap: .32rem; font-size: .88rem; font-weight: 650; }
input { min-width: 0; font-size: 1rem; font-weight: 400; }
.field-hint { margin-top: -.65rem; color: var(--muted); }
.primary, .product-link { display: block; text-align: center; font-weight: 720; text-decoration: none; }
.primary { background: #cc0056; border-color: #ff4b94; color: #fff; }
.primary:hover:not(:disabled) { background: #e0005e; }
.product-link { margin: .65rem 0 0; }
.switch, .hint { margin: .85rem 0 0; font-size: .88rem; color: var(--muted); }
.text-button { width: fit-content; padding: .25rem 0; border: 0; background: none; color: var(--accent); text-decoration: underline; }

#account-status { margin: 0; }
#account-status:not(:empty) {
  margin: .85rem 0;
  padding: .65rem .8rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: var(--background);
  font-size: .9rem;
}
#account-status[data-error] { border-color: #be5581; color: #ffc4dc; }
