/* Shared card language for the unauthenticated auth pages (forgot, reset).
   Extracted rather than copied a third and fourth time: login.html and
   verify.html still carry their own inline copies of these rules, and
   retrofitting them is a separate, purely-visual change. All colors come from
   codexiq-design.css tokens, so both themes work with no overrides here. */

html, body {
  min-height: 100%;
  background: var(--bg);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 30px 28px;
  box-shadow: 0 4px 24px rgba(20, 17, 30, 0.06);
}
[data-theme="dark"] .auth-card { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.32); }

.auth-logo-light,
.auth-logo-dark {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 24px;
}
.auth-logo-dark { display: none; }
[data-theme="dark"] .auth-logo-light { display: none; }
[data-theme="dark"] .auth-logo-dark  { display: block; }

.auth-heading {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 12.5px;
  color: var(--t3);
  margin-bottom: 22px;
  line-height: 1.55;
}
.auth-sub strong { color: var(--t2); }

.auth-error,
.auth-notice {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 16px;
}
.auth-error {
  border: 1px solid color-mix(in srgb, var(--err) 35%, transparent);
  background: color-mix(in srgb, var(--err) 8%, var(--panel));
  color: var(--err);
}
.auth-notice {
  border: 1px solid color-mix(in srgb, var(--ok, #3E9C6B) 35%, transparent);
  background: color-mix(in srgb, var(--ok, #3E9C6B) 8%, var(--panel));
  color: var(--ok, #3E9C6B);
}

.auth-field { margin-bottom: 14px; }
.auth-field-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.auth-field input {
  display: block;
  width: 100%;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--t1);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
}
.auth-field input::placeholder { color: var(--t4); }
.auth-field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px var(--violet-soft);
}

/* The code input reads as a code: monospace, spaced, centered. */
.auth-field input.auth-code-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.35em;
  text-align: center;
}

/* Opt-in destructive extra on an auth form (revoke tokens during a reset).
   Warn-toned rather than error-toned: it is a deliberate choice, not a fault. */
.auth-checkbox {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  background: color-mix(in srgb, var(--warn) 6%, var(--panel));
  border-radius: 7px;
}
.auth-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
}
.auth-checkbox input[type="checkbox"] {
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--warn);
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.auth-checkbox-hint {
  margin: 7px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--t3);
}
.auth-checkbox-hint strong { color: var(--t2); }

.auth-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 16px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 120ms;
}
.auth-btn:hover  { background: var(--violet-deep); }
.auth-btn:active { transform: translateY(1px); }

/* Footnote links under a button inherit no margin of their own elsewhere and
   end up flush against it — give every one the same measured air. */
.auth-footnote {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
}
.auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--t3);
}
.auth-footnote a,
.auth-switch a {
  color: var(--violet);
  text-decoration: none;
  font-weight: 600;
}
.auth-footnote a:hover,
.auth-switch a:hover { text-decoration: underline; }
