/* The Gripsun look of the app and the console (research of 28 Oct): brand blue, sun yellow, blue ink headings, the
   app's canvas ground, 12 px corners, Plus Jakarta Sans for headings, labels and the button (OFL-1.1, self-hosted,
   one variable file for every weight). Body text stays the system font. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/delete-account/plus-jakarta-sans.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand: #0756a4;
  --brand-deep: #064585;
  --ink: #062b54;
  --text: #16191d;
  --muted: #545c66;
  --line: #e5e7eb;
  --ground: #edf1f7;
  --surface: #ffffff;
  --field: #f9fafb;
  --sun: #ffcc03;
  --sun-surface: #fff8e1;
  --teal-ink: #056c5d;
  --danger: #d63430;
  --danger-surface: #fdecea;
  --danger-text: #b42318;
  --info-surface: #e8f0fb;
  --radius: 12px;
  --heading-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
}

.intro {
  text-align: center;
}

.logo {
  display: block;
  width: auto;
  height: 40px;
  margin: 0 auto 1.5rem;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-name {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.lead {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 4px 12px rgb(6 43 84 / 0.08);
}

form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

label {
  color: var(--text);
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: 700;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--brand);
  background: var(--surface);
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.forgot {
  color: var(--teal-ink);
}

.confirm {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
}

.confirm input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  flex: none;
  accent-color: var(--brand);
}

button {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--danger);
  color: #ffffff;
  font-family: var(--heading-font);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  background: var(--info-surface);
  font-size: 0.9375rem;
}

.status-error {
  background: var(--danger-surface);
  color: var(--danger-text);
}

.done {
  text-align: center;
}

.done h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 800;
}

.done h2:focus {
  outline: none;
}

.date-box {
  margin: 0 0 1rem;
  padding: 1rem;
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  background: var(--sun-surface);
}

.date-box strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.125rem;
}

.done p:last-child {
  margin: 0;
  color: var(--muted);
}

footer {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

footer p {
  margin: 0 0 0.5rem;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-deep);
}
