/* The site's account pages (sign in, sign up, passwords): a brand panel and one form. */
:root {
  --bg: #f4f6f6;
  --surface: #ffffff;
  --text: #15201f;
  --muted: #5f6b6a;
  --border: #dde3e2;
  --accent: #007782;
  --accent-strong: #005e67;
  --accent-soft: #e0f2f3;
  --beak: #f29a2e;
  --error: #b3261e;
  --error-bg: #fdecea;
  --ok: #1f7a4a;
  --ok-bg: #e5f4ec;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1415;
    --surface: #182022;
    --text: #e8eeee;
    --muted: #97a4a4;
    --border: #2a3436;
    --accent: #3fb6bf;
    --accent-strong: #66cbd2;
    --accent-soft: #163a3d;
    --error: #f4a3ad;
    --error-bg: #3d1a1f;
    --ok: #8fd8ae;
    --ok-bg: #173226;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Brand panel */
.brand {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #00616b 0%, #007782 45%, #0a8f8a 100%);
  color: #f2fbfb;
}
.brand::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 154, 46, 0.35), transparent 65%);
  pointer-events: none;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.brand h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
.brand p { margin: 0; color: rgba(242, 251, 251, 0.82); max-width: 40ch; }
.brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.brand li { display: flex; gap: 10px; align-items: flex-start; color: rgba(242, 251, 251, 0.92); }
.brand li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.brand small { color: rgba(242, 251, 251, 0.6); font-size: 13px; position: relative; z-index: 1; }

/* Form side */
main { display: grid; place-items: center; padding: 40px 20px; }
form { width: min(400px, 100%); display: grid; gap: 18px; }
form h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
form .lead { margin: -10px 0 4px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row { display: flex; justify-content: space-between; align-items: baseline; }
button.primary {
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
@media (prefers-color-scheme: dark) { button.primary { color: #062224; } }
button.primary:hover { background: var(--accent-strong); }
button.primary:active { transform: translateY(1px); }
button.primary:disabled { opacity: 0.6; cursor: progress; }
.message:empty { display: none; }
.message { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: var(--error-bg); color: var(--error); }
.message.ok { background: var(--ok-bg); color: var(--ok); }
.switch { margin: 6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.mobile-logo { display: none; color: var(--text); }

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; }
  .brand { display: none; }
  .mobile-logo { display: inline-flex; margin-bottom: 8px; }
}
form#delete { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border, #dfe5e4); }
form#delete h2 { margin: 0; font-size: 20px; }
button.danger { padding: 13px 16px; font: inherit; font-weight: 600; color: var(--error); background: var(--error-bg); border: 1px solid currentColor; border-radius: 10px; cursor: pointer; }
button.danger:disabled { opacity: 0.6; cursor: progress; }

/* The field only robots fill. */
.field.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
