/* Account, profile and completion views share a compact paper form. */
main:has(> .entry-card:not(.hidden)) {
  overflow: auto;
  background-color: #eef3f6;
}
.card.narrow.entry-card {
  --entry-gutter: clamp(22px, 3.5vw, 42px);
  width: calc(100% - 40px);
  max-width: 454px;
  margin: clamp(28px, 9vh, 90px) auto 38px;
  padding: clamp(26px, 3vw, 36px) var(--entry-gutter) 0;
  gap: 18px;
  border: 1px solid #cddae2;
  border-top: 3px solid #095789;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 9px 32px rgba(23, 49, 66, .07);
}
.entry-card h2 {
  margin: 0 0 4px; color: #18394d;
  font-size: clamp(23px, 2.2vw, 28px);
  font-weight: 650; line-height: 1.35;
}
.entry-card label {
  gap: 6px; min-width: 0;
  color: #253b4a; font-size: 14px; font-weight: 600;
}
.entry-card label input, .entry-card label select {
  box-sizing: border-box; width: 100%; min-width: 0; height: 44px;
  padding: 8px 12px; border: 1px solid #afc1cd; border-radius: 6px;
  background-color: #fff; color: #172d3d; font: inherit; font-weight: 400;
}
.entry-card :is(input, select):focus-visible, .entry-card :is(button, a):focus-visible {
  outline: 3px solid #77b3d3; outline-offset: 2px;
}
.entry-card input::placeholder { color: #637783; opacity: 1; }
.entry-card .primary {
  width: 100%; min-height: 44px; padding: 8px 16px;
  border: 1px solid #095789; border-radius: 6px;
  background: #095789; color: #fff; font-size: 15px; font-weight: 600;
}
.entry-card .primary:hover { background: #084570; }
.entry-card .primary:disabled { color: #506674; border-color: #bdcdd6; background: #d8e1e7; cursor: default; }
.entry-card .entry-hint, .entry-card .hint {
  margin: -12px 0 0; color: #526875; font-size: 13px; line-height: 1.6;
}
.entry-card #mode-msg:not(:empty), .entry-card #notice:not(:empty) {
  margin: 0; padding: 10px 13px; border-radius: 6px; border: 1px solid #d6e3ea;
  background: #f3f8fa; color: #294f65; font-size: 13px; line-height: 1.65;
}
.entry-card .error, .entry-card #mode-msg.error { margin: 0; color: #a52722; }
.entry-card .error:empty { display: none; }
.entry-card .entry-footer {
  margin: 4px calc(-1 * var(--entry-gutter)) 0;
  padding: 17px var(--entry-gutter); border-top: 1px solid #dbe5eb;
  border-radius: 0 0 10px 10px; background: #f8fafb;
  color: #526875; font-size: 14px;
}
.entry-card .entry-footer a { margin-inline-start: 6px; color: #095789; font-weight: 600; text-underline-offset: 3px; }
.card.narrow.entry-card.reg { max-width: 570px; margin-block-start: clamp(20px, 4vh, 44px) !important; }
.entry-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.entry-card .profile { gap: 16px; }
#done-view.entry-card, #profile-view.entry-card { padding-bottom: 30px; }
#done-view.entry-card { max-width: 640px; }
#done-view.entry-card > p { margin: 0; color: #405967; line-height: 1.75; }
#done-view.entry-card #feedback-box { margin-top: 2px; }
#done-view.entry-card #feedback-box:empty { display: none; }
@media (max-width: 520px) {
  .card.narrow.entry-card { width: calc(100% - 24px); margin-block-start: 20px; }
  .entry-card label input, .entry-card label select { font-size: 16px; }
  .entry-field-pair { grid-template-columns: 1fr; gap: 18px; }
}

/* The signed-out screen carries the hospital signature inside its own panel. */
.workbench:has(#login-view:not(.hidden)) > .institution { display: none; }
.workbench > main:has(> #login-view:not(.hidden)) {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(16px, 4vh, 40px) 16px; background: #0b284a;
}
#login-view.entry-card {
  flex: none; width: 100%; max-width: 502px; margin: auto;
  padding: clamp(26px, 4.2vw, 38px) clamp(20px, 5.4vw, 50px) clamp(20px, 3vw, 26px);
  gap: 20px; border: 0; border-radius: 18px;
  box-shadow: 0 16px 46px rgba(1, 14, 31, .22);
}
.login-heading { text-align: center; margin-bottom: 8px; }
.login-insignia {
  width: 112px; aspect-ratio: 1; display: block; margin: 0 auto 15px;
  /* The round seal occupies x 2–284, y 29–311 of the original 1225 × 350 artwork. */
  background: url("/static/ncu-eye-hospital.png") no-repeat .21% 42.65% / 434.4% auto;
}
#login-title {
  margin: 0; font: 700 clamp(26px, 6.8vw, 37px)/1.2 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.035em; color: #18283c;
}
.login-heading p { margin: 8px 0 0; font-size: clamp(13px, 3.7vw, 19px); line-height: 1.5; color: #536477; }
#login-view label { gap: 7px; color: #26364a; font-size: 15px; }
#login-view input {
  height: 49px; border-color: #c7d0db; border-radius: 7px;
  padding-inline: 14px; background-color: #edf2fc; font-weight: 400; color: #18283c;
}
#login-view input::placeholder { color: #748191; }
#login-view .primary {
  min-height: 48px; margin-top: 4px; background-color: #1269ce;
  border-color: #1269ce; border-radius: 7px; font-size: 17px;
}
#login-view .primary:hover { background: #0e58b0; border-color: #0e58b0; }
#login-view .entry-footer {
  margin: -4px 0 0; padding: 0; background: transparent; border: 0;
  text-align: center; font-size: 13px; color: #5d6c7c;
}
#login-view .entry-footer a { color: #145fae; }
@media (max-width: 420px), (max-height: 680px) {
  #login-view.entry-card { gap: 16px; }
  .login-insignia { width: clamp(68px, 20vw, 88px); margin-bottom: 12px; }
  .login-heading { margin-bottom: 4px; }
}
