.patient-account-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(192, 231, 214, .58), transparent 32rem),
    linear-gradient(180deg, #f7f4ec 0%, #eef4ef 100%);
  color: #123d3e;
  font-family: Montserrat, system-ui, sans-serif;
}

.patient-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(16, 71, 70, .13);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px);
}

.patient-account-header > span {
  color: #537070;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.patient-account-brand img {
  display: block;
  width: 42px;
  height: auto;
}

.patient-account-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.patient-account-brand > span {
  color: #0b4d4b;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.patient-account-main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.patient-account-card,
.patient-account-welcome {
  border: 1px solid rgba(16, 71, 70, .14);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 65px rgba(16, 71, 70, .08);
}

.patient-account-card {
  padding: clamp(24px, 4vw, 40px);
}

.patient-account-card-narrow {
  width: min(560px, 100%);
  margin: 5vh auto 0;
}

.patient-account-card h1,
.patient-account-welcome h1 {
  margin: 0 0 12px;
  color: #0b4d4b;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
}

.patient-account-card h2 {
  margin: 0 0 20px;
  color: #0b4d4b;
  font-size: 1.35rem;
}

.patient-account-card p,
.patient-account-welcome p {
  color: #526c6c;
  line-height: 1.65;
}

.patient-account-form {
  display: grid;
  gap: 18px;
}

.patient-account-field {
  display: grid;
  gap: 8px;
  color: #183f40;
  font-size: .88rem;
  font-weight: 700;
}

.patient-account-field small,
.patient-account-help {
  color: #6c7f7f;
  font-size: .76rem;
  font-weight: 500;
}

.patient-account-field input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  border: 1px solid #b9cac4;
  border-radius: 13px;
  padding: 0 14px;
  background: #fbfcf8;
  color: #153f40;
  font: inherit;
  font-weight: 500;
}

.patient-account-field input:focus {
  outline: 3px solid rgba(65, 179, 142, .23);
  border-color: #2c9777;
}

.patient-account-field input[readonly] {
  background: #eef4ef;
  color: #506b69;
}

.patient-account-primary,
.patient-account-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  padding: 0 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.patient-account-primary {
  background: #2fb987;
  color: #062e2d;
}

.patient-account-secondary {
  border: 1px solid rgba(10, 74, 72, .18);
  background: #fff;
  color: #0b4d4b;
}

.patient-account-primary:disabled,
.patient-account-secondary:disabled {
  cursor: wait;
  opacity: .58;
}

.patient-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.patient-account-error {
  min-height: 20px;
  margin: 0;
  color: #a33f3b !important;
  font-size: .86rem;
  font-weight: 650;
}

.patient-account-success {
  border: 1px solid #8fd0ac;
  border-radius: 14px;
  padding: 14px 16px;
  background: #e8f6ee;
  color: #126545;
  font-weight: 650;
}

.patient-account-warning {
  border: 1px solid #e2c46a;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff7d8;
  color: #6c5312;
  font-size: .88rem;
  font-weight: 650;
}

.patient-account-eyebrow {
  margin: 0 !important;
  color: #2a8f6e !important;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.patient-account-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.patient-account-welcome,
.patient-account-privacy,
.patient-account-dashboard > .patient-account-success {
  grid-column: 1 / -1;
}

.patient-account-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(120deg, #0a5552 0%, #0f7268 100%);
  color: #fff;
}

.patient-account-welcome h1,
.patient-account-welcome p,
.patient-account-welcome .patient-account-eyebrow {
  color: #fff !important;
}

.patient-account-welcome p {
  max-width: 690px;
  margin-bottom: 0;
  opacity: .88;
}

.patient-account-row {
  display: grid;
  gap: 5px;
  padding: 16px 0;
  border-top: 1px solid rgba(16, 71, 70, .1);
}

.patient-account-row:first-of-type {
  border-top: 0;
}

.patient-account-row span {
  color: #647b79;
  font-size: .86rem;
}

.patient-account-chip {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f6e8c3;
  color: #7c5f1a !important;
  font-size: .72rem !important;
  font-weight: 800;
}

.patient-account-chip.success {
  background: #ddf2e6;
  color: #176644 !important;
}

.patient-account-empty {
  margin: 0;
  color: #738582 !important;
}

.patient-account-privacy {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  padding: 17px 20px;
  background: rgba(9, 71, 69, .08);
  color: #365b5a;
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .patient-account-header { min-height: 64px; padding: 0 18px; }
  .patient-account-header > span { display: none; }
  .patient-account-brand img { width: 120px; }
  .patient-account-main { padding-top: 24px; }
  .patient-account-dashboard { grid-template-columns: 1fr; }
  .patient-account-welcome { display: grid; }
  .patient-account-welcome .patient-account-secondary { justify-self: start; }
}
