/* Unified account pages. Scoped to .xh-auth-page. */
.xh-auth-page {
  --xh-auth-primary: #b6332c;
  --xh-auth-primary-dark: #942821;
  --xh-auth-border: #e3e7ee;
  --xh-auth-soft: #f6f8fb;
  --xh-auth-text: #24313f;
  --xh-auth-muted: #667589;
  padding: 34px 0 42px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  color: var(--xh-auth-text);
}
.xh-auth-page * { box-sizing: border-box; }
.xh-auth-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
  gap: 22px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.xh-auth-aside,
.xh-auth-card {
  border: 1px solid var(--xh-auth-border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(22, 34, 51, .08);
}
.xh-auth-aside {
  padding: 30px 28px;
  background: linear-gradient(145deg, #ffffff 0%, #fff8f7 100%);
}
.xh-auth-kicker {
  margin-bottom: 10px;
  color: var(--xh-auth-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.xh-auth-aside h1 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}
.xh-auth-aside p {
  margin: 0 0 20px;
  color: var(--xh-auth-muted);
  font-size: 15px;
  line-height: 1.75;
}
.xh-auth-notes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.xh-auth-notes li {
  position: relative;
  margin: 10px 0;
  padding-left: 18px;
  color: #536274;
  line-height: 1.7;
}
.xh-auth-notes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xh-auth-primary);
}
.xh-auth-card {
  padding: 28px 30px 30px;
}
.xh-auth-card-header {
  margin-bottom: 18px;
}
.xh-auth-card-header h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 24px;
  font-weight: 700;
}
.xh-auth-card-header p {
  margin: 0;
  color: var(--xh-auth-muted);
  font-size: 14px;
  line-height: 1.65;
}
.xh-auth-alert {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.6;
}
.xh-auth-alert-error {
  border: 1px solid #f0b8b3;
  background: #fff5f4;
  color: #9f2d26;
}
.xh-auth-alert-success {
  border: 1px solid #bfe2cf;
  background: #f1fbf5;
  color: #1f7a45;
}
.xh-auth-form {
  margin: 0;
}
.xh-auth-field {
  margin-bottom: 15px;
}
.xh-auth-field label.xh-auth-label {
  display: block;
  margin: 0 0 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}
.xh-auth-input-wrap {
  position: relative;
}
.xh-auth-page input[type="text"],
.xh-auth-page input[type="password"],
.xh-auth-page input[type="email"] {
  width: 100%;
  height: 39px;
  padding: 8px 11px;
  border: 1px solid #cfd7e2;
  border-radius: 9px;
  background: #fff;
  color: #1f2937;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.xh-auth-page input[type="password"],
.xh-auth-page input[data-xh-password],
.xh-admin-page input[type="password"],
.xh-admin-page input[data-xh-password] {
  padding-right: 58px;
}
.xh-auth-page input:focus {
  border-color: #9fb3ce;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .10);
}
.xh-auth-toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: #eef2f7;
  color: #536274;
  font-size: 12px;
  cursor: pointer;
}
.xh-auth-toggle-password:hover {
  background: #e2e8f0;
  color: #1f2937;
}
.xh-auth-error,
.xh-auth-hint,
.xh-auth-live-hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.xh-auth-error {
  color: #b42318;
}
.xh-auth-hint {
  color: var(--xh-auth-muted);
}
.xh-auth-live-hint {
  color: var(--xh-auth-muted);
}
.xh-auth-live-hint.is-ok { color: #1f7a45; }
.xh-auth-live-hint.is-error { color: #b42318; }
.xh-auth-live-hint.is-warn { color: #a15c00; }
.xh-auth-field.is-error input {
  border-color: #e8958d;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .08);
}
.xh-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.xh-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 18px;
  border: 1px solid #c7ced8;
  border-radius: 9px;
  background: #fff;
  color: #2b3440;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.xh-auth-btn:hover {
  background: #f1f4f8;
  border-color: #9da8b6;
  color: #111827;
}
.xh-auth-btn-primary {
  min-width: 112px;
  background: var(--xh-auth-primary);
  border-color: var(--xh-auth-primary);
  color: #fff;
  font-weight: 700;
}
.xh-auth-btn-primary:hover {
  background: var(--xh-auth-primary-dark);
  border-color: var(--xh-auth-primary-dark);
  color: #fff;
}
.xh-auth-link {
  color: var(--xh-auth-primary);
  text-decoration: none;
}
.xh-auth-link:hover { text-decoration: underline; }
.xh-auth-footnote {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--xh-auth-border);
  color: var(--xh-auth-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .xh-auth-page { padding: 22px 0 32px; }
  .xh-auth-shell { grid-template-columns: 1fr; }
  .xh-auth-aside, .xh-auth-card { padding: 22px 18px; }
  .xh-auth-aside h1 { font-size: 26px; }
  .xh-auth-actions { display: grid; grid-template-columns: 1fr; }
  .xh-auth-btn { width: 100%; }
}
