/* ===========================================================
   Medicross — auth screens (login.html, register.html)
   =========================================================== */
:root {
  --brand: #D42B2B;
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
  --ink: #211E1A;
  --muted: #6B655C;
  --cream: #FBF7F1;
  --line: rgba(33, 30, 26, .1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--cream); color: var(--ink);
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  -webkit-font-smoothing: antialiased;
}
.card {
  width: 100%; max-width: 420px; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px 30px;
  box-shadow: 0 30px 60px -30px rgba(33, 30, 26, .25);
}
.card.wide { max-width: 560px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Newsreader', serif; font-weight: 600; font-size: 24px; margin-bottom: 6px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
label .opt { font-weight: 600; color: var(--muted); }
input, select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; color: inherit;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.check {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  font-weight: 600; font-size: 12.5px; line-height: 1.6; cursor: pointer;
}
.check input { width: 17px; height: 17px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.check a { color: var(--brand); font-weight: 700; }
.check .req {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff);
  padding: 2px 7px; border-radius: 999px; margin-left: 2px;
}
.gdpr-note {
  margin-top: 10px; padding: 10px 13px; border: 1px dashed var(--line); border-radius: 11px;
  font-size: 11.5px; color: var(--muted); line-height: 1.6;
}

button[type=submit] {
  width: 100%; margin-top: 22px; padding: 13px; font: inherit; font-weight: 700; font-size: 14.5px;
  background: var(--brand); color: #fff; border: none; border-radius: 999px; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
button[type=submit]:hover { background: var(--brand-dark); transform: translateY(-1px); }

.err { display: none; margin-top: 14px; padding: 10px 13px; border-radius: 10px; background: #fdeaea; color: #a11d1d; font-size: 13px; font-weight: 600; }
.err.show { display: block; }

.alt { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.alt a { color: var(--brand); font-weight: 700; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.back { display: block; text-align: center; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--brand); }

@media (max-width: 560px) {
  .card { padding: 26px 20px 24px; }
  .grid { grid-template-columns: 1fr; }
}
