@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #26352f;
  --muted: #66766f;
  --green: #3f7d62;
  --green-dark: #2e604a;
  --magenta: #c94f7c;
  --paper: #ffffff;
  --canvas: #f4f6f2;
  --line: #dfe7e1;
}

html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  margin: 0;
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus, .logout-button:focus {
  box-shadow: 0 0 0 3px rgba(201, 79, 124, .2);
  outline: 0;
}

html {
  position: relative;
  min-height: 100%;
}

.page-width {
  margin: 0 auto;
  max-width: 72rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.brand-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 5.5rem;
}

.brand-mark img {
  display: block;
  max-height: 3.1rem;
  width: min(11rem, 42vw);
}

.header-session {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.clinic-badge {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}

.logout-button {
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  padding: .6rem .9rem;
}

.logout-button:hover {
  background: #edf5ef;
}

.page-heading {
  margin: 3.5rem auto 2rem;
  max-width: 42rem;
}

.eyebrow {
  color: var(--magenta);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}

h1, h2 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0;
}

.page-heading h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.page-intro {
  color: var(--muted);
  font-size: 1.05rem;
  margin: .75rem 0 0;
}

.test-banner {
  align-items: center;
  background: #fff8ed;
  border: 1px solid #f1d9ae;
  border-left: 4px solid var(--magenta);
  border-radius: 4px;
  display: flex;
  gap: .75rem;
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  padding: .9rem 1rem;
}

.test-banner-label {
  color: #9d3b62;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(38, 53, 47, .06);
  margin: 0 auto 4rem;
  max-width: 42rem;
  overflow: hidden;
}

.form-card-header {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.25rem;
}

.form-card-header h2 {
  font-size: 1.45rem;
  margin: 0 0 .5rem;
}

.form-card-header p:last-child {
  color: var(--muted);
  margin: 0;
}

.request-form {
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .45rem;
}

.form-control {
  border: 1px solid #bfcfc4;
  border-radius: 4px;
  color: var(--ink);
  min-height: 3rem;
  padding: .7rem .8rem;
}

.form-control:focus {
  border-color: var(--green);
}

.confirmation-field {
  align-items: flex-start;
  display: flex;
  gap: .65rem;
  margin: 1.5rem 0;
}

.confirmation-field .form-check-input {
  flex: 0 0 auto;
  margin-top: .2rem;
}

.confirmation-field .form-check-label {
  color: var(--muted);
  font-size: .9rem;
}

.request-button {
  background: var(--green);
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  width: 100%;
}

.request-button:hover {
  background: var(--green-dark);
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 75vh;
  padding: 2rem 1rem;
}

.login-panel {
  max-width: 28rem;
  text-align: center;
  width: 100%;
}

.login-logo {
  height: auto;
  margin-bottom: 1.5rem;
  max-width: 15rem;
  width: 100%;
}

.login-subtitle {
  color: #64746d;
  margin-bottom: 2rem;
}

.login-form {
  text-align: left;
}

.login-form fieldset {
  border: 0;
  margin: 1.5rem 0;
  padding: 0;
}

.login-form legend {
  font-size: 1rem;
  font-weight: 600;
}

.pin-inputs {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.pin-input {
  font-size: 1.75rem;
  height: 3.5rem;
  text-align: center;
  width: 3.5rem;
}

.login-button {
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}