/* AI4Therapists account look. Colour tokens and the slim header are copied from the course site's
   shared styles (home/assets/site-chrome.css); copied in, not linked. */

:root {
  --sc-bg: #F4F8F6;
  --sc-ink: #142A30;
  --sc-muted: #4A6064;
  --sc-line: #CFDDD8;
  --sc-hover: #8A5A0B;
  --sc-amber: #EAA53D;
  --sc-amber-hover: #F0B65E;
  --sc-on-amber: #142A30;
  --sc-focus: #19424D;
  --sc-error: #9B2C2C;
  --sc-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-gutter: clamp(1rem, 4vw, 2.5rem);
  --sc-max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sc-bg: #0F2227;
    --sc-ink: #E6EEEB;
    --sc-muted: #A6BBB8;
    --sc-line: #2A474E;
    --sc-hover: #F0C26F;
    --sc-focus: #EAA53D;
    --sc-error: #F3A6A6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sc-bg);
  color: var(--sc-ink);
  font-family: var(--sc-sans);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

/* Slim header */
.sc-header { position: relative; background: var(--sc-bg); color: var(--sc-ink); border-bottom: 1px solid var(--sc-line); }
.sc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--sc-max); min-height: 4rem; margin: 0 auto; padding: 0.5rem var(--sc-gutter);
}
.sc-brand { display: block; flex: none; line-height: 0; border-radius: 4px; }
.sc-brand img { display: block; width: 150px; max-width: 100%; height: auto; }
@media (min-width: 48rem) { .sc-brand img { width: 168px; } }
.sc-brand:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }

/* Page */
.account { max-width: 30rem; margin: 0 auto; padding: clamp(2rem, 8vw, 4rem) var(--sc-gutter); }
h1 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1.2; font-weight: 600; }
.line { margin: 0 0 1.25rem; }
.error { color: var(--sc-error); }
.line:empty { display: none; }
form { display: grid; gap: 0.5rem; margin: 0 0 1.25rem; }
label { font-weight: 500; }
input[type="email"] {
  width: 100%; min-height: 3rem; padding: 0.5rem 0.9rem; font: inherit; color: var(--sc-ink);
  background: transparent; border: 1px solid var(--sc-muted); border-radius: 0.5rem;
}
button {
  min-height: 3rem; margin-top: 0.5rem; padding: 0.6rem 1.5rem; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--sc-on-amber); background: var(--sc-amber); border: 0; border-radius: 999px;
}
button:hover { background: var(--sc-amber-hover); }
input:focus-visible, button:focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; }
@media (min-width: 30rem) { button { justify-self: start; } }

.divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--sc-muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--sc-line); }
#google { margin: 0 0 0; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
#send-form .row button, #password-go { margin-top: 0.5rem; }
button.quiet {
  min-height: 2.75rem; padding: 0.5rem 0; font-weight: 500; color: var(--sc-ink); background: none; border-radius: 0;
  text-decoration: underline; text-underline-offset: 0.2em;
}
button.quiet:hover { background: none; color: var(--sc-hover); }
#password-panel { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
#password-panel .row { margin-top: 0.25rem; }
.hint { margin: 0; color: var(--sc-muted); font-size: 1rem; }
input[type="password"], input[type="text"].pw {
  width: 100%; min-height: 3rem; padding: 0.5rem 0.9rem; font: inherit; color: var(--sc-ink);
  background: transparent; border: 1px solid var(--sc-muted); border-radius: 0.5rem;
}
#show-password { justify-self: start; min-height: 2.25rem; }
