/* Sign-in and pharmacy registration pages, including mobile form layout. */

* {
  box-sizing: border-box;
}
:root {
  --navy: #0e1a2d;
  --navy-soft: #12314a;
  --ink: #172b3d;
  --muted: #607482;
  --green: #20aa9a;
  --green-dark: #147e73;
  --gold: #d9a916;
  --line: #cfe0e4;
  --paper: #ffffff;
  --canvas: #eef8fa;
  --error: #a22d25;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(18, 49, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 49, 74, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 72px);
  background: rgba(14, 26, 45, 0.96);
  color: #fff;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}
.site-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: #f3ca4a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}
.site-link:hover {
  background: var(--gold);
  color: var(--navy);
}
.page-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(480px, 0.92fr);
}
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(40px, 4.5vw, 66px);
  overflow: hidden;
}
.brand-panel::after {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7%;
  height: 1px;
  background: var(--line);
  content: "";
}
.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.brand-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}
.brand-copy h1 strong {
  color: var(--green);
}
.brand-copy > p:last-of-type {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--navy-soft);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
}
.queue-visual {
  position: relative;
  z-index: 1;
  width: min(470px, 100%);
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(14, 26, 45, 0.08);
}
.queue-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--navy-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--green-dark);
}
.live-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}
.queue-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 37px;
  padding: 0 12px;
  border-top: 1px solid #dce8ea;
  color: var(--navy-soft);
  font-size: 14px;
}
.queue-count {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.brand-foot {
  display: none;
}
.auth-panel {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: clamp(32px, 5vw, 78px);
  background: rgba(255, 255, 255, 0.5);
  border-left: 1px solid var(--line);
}
main {
  width: min(470px, 100%);
  margin: auto;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(14, 26, 45, 0.12);
}
main.registration-page {
  width: min(780px, 100%);
}
header {
  margin-bottom: 32px;
}
header .section-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}
header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
section {
  padding: 0;
}
form {
  display: grid;
  gap: 16px;
}
.registration-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.registration-form > .wide,
.registration-form > button,
.registration-form > .error {
  grid-column: 1 / -1;
}
.form-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-group + .form-group {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-group legend {
  width: 100%;
  margin: 0 0 17px;
  padding: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.form-grid .wide {
  grid-column: 1 / -1;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.optional {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #9fb4ba;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font:
    16px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
input:focus {
  outline: 3px solid rgba(20, 125, 115, 0.18);
  border-color: var(--green);
}
button,
.button-link {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  background: var(--green-dark);
  color: #fff;
  font:
    800 14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.button-link.secondary {
  margin-top: 12px;
  background: #fff;
  color: var(--green-dark);
}
.button-link.secondary:hover {
  background: #edf7f4;
}
.remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green);
}
.alternate {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.forgot-link {
  margin-top: -5px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}
.error {
  margin: 0;
  padding: 11px 12px;
  border-left: 4px solid var(--error);
  background: #fff0ee;
  color: #78231d;
  font-size: 14px;
  line-height: 1.4;
}
.success {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #e9f6f2;
  color: #18584f;
  font-size: 14px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .site-bar {
    min-height: 68px;
    padding: 0 24px;
  }
  .page-shell {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    min-height: auto;
    padding: 42px 28px 34px;
    text-align: center;
  }
  .brand-panel::after {
    display: none;
  }
  .brand-copy {
    margin: auto;
  }
  .brand-copy h1 {
    max-width: 660px;
    font-size: 40px;
  }
  .brand-copy > p:last-of-type,
  .queue-visual,
  .brand-foot {
    display: none;
  }
  .auth-panel {
    min-height: calc(100vh - 240px);
    padding: 28px 28px 56px;
    border-left: 0;
  }
}
@media (max-width: 600px) {
  .site-bar {
    min-height: 62px;
    padding: 0 18px;
  }
  .wordmark {
    font-size: 19px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
  .site-link {
    padding: 6px 10px;
    font-size: 10px;
  }
  .brand-panel {
    padding: 30px 20px 25px;
  }
  .brand-copy h1 {
    font-size: 31px;
    line-height: 1.08;
  }
  .eyebrow {
    margin-bottom: 10px;
  }
  .auth-panel {
    min-height: auto;
    padding: 14px 14px 42px;
    align-items: start;
  }
  main {
    padding: 28px 20px;
  }
  header {
    margin-bottom: 24px;
  }
  header h2 {
    font-size: 29px;
  }
  .registration-form {
    grid-template-columns: 1fr;
  }
  .registration-form > .wide,
  .registration-form > button,
  .registration-form > .error {
    grid-column: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
}
