/* Auth-page-specific tokens layered on top of canonical tokens.css.
 *
 * Removed 2026-05-22: --navy, --navy-deep, --electric, --danger, --success
 * (all duplicated tokens.css with drifted values); --text-dark, --text-muted,
 * --border-focus, --danger-bg, --success-bg, --electric-strong (renamed to
 * canonical: --ink, --muted, --electric, --state-error-bg, --state-success-bg,
 * --brand-blue).
 *
 * What stays page-local:
 *   - the radial-gradient indigo backdrop (auth-page-only)
 *   - card + input radii (auth-page sizing)
 *   - --auth-input-border: a darker form-border specific to auth inputs.
 *     `--line-strong` (#d1d5db) is what the rest of the app uses, but on
 *     the high-contrast white auth card the line nearly vanishes; the
 *     darker tone here gives the readable outline the previous (drifted)
 *     #d6dce4 was producing.
 */
:root {
  --indigo-bg-1: #20306b;
  --indigo-bg-2: #111a3f;
  --card-radius: 18px;
  --input-radius: 12px;
  --auth-input-border: #b8c1d0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, var(--indigo-bg-1) 0%, var(--indigo-bg-2) 70%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  color: #cfd8e6;
}

.brand .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.brand .tagline {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aab6cc;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 460px;
  border-radius: var(--card-radius);
  padding: 40px 38px 36px;
  box-shadow: 0 24px 60px rgba(8, 14, 35, 0.35);
}

.card.wide { max-width: 560px; }

.card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin: 0 0 6px;
  color: var(--navy);
}

.card .subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.field label .req { color: var(--danger); margin-left: 3px; }

.input-wrap { position: relative; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--auth-input-border);
  border-radius: var(--input-radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder { color: #9aa6b6; }

input:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(43, 182, 221, 0.18);
}

input[readonly] { background: #f4f6f9; color: var(--muted); }

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  padding: 6px;
  line-height: 1;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -6px 0 18px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--navy);
  margin: 4px 0 20px;
}

.link {
  color: var(--brand-blue);
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.link:hover { text-decoration: underline; }

.btn {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-radius: var(--input-radius);
  background: linear-gradient(90deg, #5bb8e8 0%, #2c7fb8 55%, var(--navy) 100%);
  transition: filter 0.15s ease, transform 0.05s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--auth-input-border);
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: var(--state-error-bg); color: var(--danger); border: 1px solid #f5c6c2; }
.alert.success { background: var(--state-success-bg); color: var(--success); border: 1px solid #c2e6d2; }

.hint-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.hint-list li { margin: 3px 0; padding-left: 18px; position: relative; }
.hint-list li::before { content: "○"; position: absolute; left: 0; }
.hint-list li.ok { color: var(--success); }
.hint-list li.ok::before { content: "●"; }

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.footer-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.dashboard-card .who {
  background: #f4f6f9;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 26px;
}
.dashboard-card .who .email { font-weight: 600; color: var(--navy); font-size: 16px; }
.dashboard-card .who .role { color: var(--muted); font-size: 14px; margin-top: 4px; }

.role-badge {
  display: inline-block;
  background: rgba(43, 182, 221, 0.15);
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-block {
  word-break: break-all;
  background: #f4f6f9;
  border: 1px solid var(--auth-input-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--navy);
  margin-top: 6px;
}

.spacer-sm { height: 10px; }
.muted-link { color: var(--muted); font-size: 13px; }
