/* PeerTute public pages.
 *
 * Deliberately one small stylesheet with no framework and no build step: these pages exist to
 * satisfy Play requirements and to complete the password-reset link, and they are edited rarely
 * by whoever is on hand. A toolchain would be a liability, not an asset.
 *
 * Colours match the app's brand mark (AppColors.teal / tealDark) so the reset page does not
 * look like a different product than the email that led here. */

:root {
  --teal: #0E8074;
  --teal-dark: #0B615A;
  --ink: #12211f;
  --ink-soft: #5b6b68;
  --bg: #ffffff;
  --surface: #f6f8f8;
  --border: #e2e8e7;
  --danger: #b3261e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal: #5DCAA5;
    --teal-dark: #3FA184;
    --ink: #e8efee;
    --ink-soft: #9aabA8;
    --bg: #0f1615;
    --surface: #16211f;
    --border: #24322f;
    --danger: #f2b8b5;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 72px; }

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center;
  color: #fff;
}
.mark svg { width: 24px; height: 24px; display: block; }

.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.tagline { color: var(--ink-soft); font-size: 13px; }

h1 { font-size: 28px; line-height: 1.25; margin: 24px 0 8px; letter-spacing: -0.4px; }
h2 { font-size: 19px; margin: 32px 0 8px; }
p, li { color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

a { color: var(--teal-dark); }
@media (prefers-color-scheme: dark) { a { color: var(--teal); } }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}

label { display: block; font-weight: 600; margin: 16px 0 6px; }

input[type=password], input[type=email] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 16px; font-weight: 700;
  color: #fff;
  background: var(--teal-dark);
  border: 0; border-radius: 10px;
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: not-allowed; }

.notice { padding: 12px 14px; border-radius: 10px; margin-top: 16px; font-size: 15px; }
.notice.ok { background: rgba(14,128,116,0.12); color: var(--teal-dark); }
.notice.bad { background: rgba(179,38,30,0.10); color: var(--danger); }
@media (prefers-color-scheme: dark) { .notice.ok { color: var(--teal); } }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 48px; padding: 24px 20px 40px;
  text-align: center; color: var(--ink-soft); font-size: 13.5px;
}
footer.site a { margin: 0 8px; }
