/* The sign-in page in the look of a classic office EHR (templates/accounts/login.html):
   Verdana at 11-12px, a glossy blue title bar, beveled grey boxes with gradient
   headers, inset inputs and a glossy button. Light only, on purpose. */
:root {
  --cl-ink: #222;
  --cl-muted: #555;
  --cl-blue-1: #3a6ea5;
  --cl-blue-2: #1d4777;
  --cl-blue-3: #10325a;
  --cl-link: #0b4ea2;
  --cl-box-line: #8fa6c2;
  --cl-page: #e4ebf3;
  --cl-error: #b00000;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.classic-login {
  min-height: 100vh; display: flex; flex-direction: column;
  font: 12px/1.45 Verdana, Tahoma, Geneva, "DejaVu Sans", sans-serif; color: var(--cl-ink);
  background: var(--cl-page) linear-gradient(#cfdbe8, var(--cl-page) 260px) no-repeat;
}
a { color: var(--cl-link); }
a:hover { color: #c0392b; }

/* title bar */
.cl-titlebar {
  background: linear-gradient(#4c82bd 0%, var(--cl-blue-1) 45%, var(--cl-blue-2) 55%, var(--cl-blue-3) 100%);
  border-bottom: 1px solid #0a2240; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.cl-titlebar__inner { max-width: 900px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.cl-brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: #fff; flex-wrap: wrap; }
.cl-brand__name { font: bold 20px/1.1 Georgia, "Times New Roman", serif; text-shadow: 1px 1px 0 #0a2240; }
.cl-brand__product { font-size: 11px; color: #d6e4f5; font-style: italic; }
.cl-titlebar__links { color: #d6e4f5; font-size: 11px; white-space: nowrap; }
.cl-menubar { background: linear-gradient(#f7f7f7, #dcdcdc); border-bottom: 1px solid #a7a7a7; padding: 4px 16px;
  font-size: 11px; color: #444; }
.cl-menubar > span { display: inline-block; }
.cl-menubar__sep { margin: 0 6px; color: #888; }
@media (min-width: 932px) { .cl-menubar { padding-left: calc((100vw - 900px) / 2 + 16px); } }

/* layout: a table, as these pages were */
.cl-page { flex: 1 0 auto; width: 100%; max-width: 900px; margin: 22px auto 10px; padding: 0 16px; }
.cl-layout { width: 100%; border-collapse: separate; border-spacing: 0; }
.cl-layout td { vertical-align: top; }
.cl-layout__login { width: 58%; padding-right: 18px; }
.cl-layout__side { width: 42%; }
@media (max-width: 720px) {
  .cl-layout, .cl-layout tbody, .cl-layout tr, .cl-layout td { display: block; width: 100%; }
  .cl-layout__login { padding-right: 0; }
  .cl-titlebar__links { display: none; }
}

/* beveled boxes */
.cl-box { background: #fff; border: 1px solid var(--cl-box-line); margin-bottom: 14px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.08); }
.cl-box__title { margin: 0; padding: 5px 9px; font-size: 12px; font-weight: bold; color: #fff;
  background: linear-gradient(#6e95c4, #4673a6 50%, #3b6698 51%, #305a8a); border-bottom: 1px solid #234b78;
  text-shadow: 1px 1px 0 #1d3d63; }
.cl-box__body { padding: 12px 14px; }
.cl-box--notice .cl-box__body { background: #ffffe1; }
.cl-box--notice .cl-box__title { background: linear-gradient(#d9a43a, #c48a1d 50%, #b97f14 51%, #a8710c);
  border-bottom-color: #7d5306; text-shadow: 1px 1px 0 #6b4605; }
.cl-intro { margin: 0 0 12px; color: var(--cl-muted); }

/* the form */
.cl-fields { border-collapse: collapse; width: 100%; }
.cl-fields th { width: 136px; text-align: right; font-weight: bold; padding: 6px 8px 6px 0; vertical-align: middle;
  white-space: nowrap; }
.cl-fields td { padding: 4px 0; }
.cl-fields input[type=text], .cl-fields input[type=email], .cl-fields input[type=password] {
  width: 100%; max-width: 250px; padding: 3px 4px; font: 12px Verdana, Tahoma, sans-serif; color: #000;
  border: 1px solid #7f9db9; border-top-color: #5a7590; background: #fff; border-radius: 0;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,.15);
}
.cl-fields input:focus { outline: none; background: #fffde0; border-color: #3a6ea5; }
.login__input.is-invalid input { border-color: var(--cl-error); background: #fff2f2; }
.cl-remember { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #333; cursor: pointer; }
.cl-actions { padding-top: 10px !important; }
.cl-button {
  display: inline-block; min-width: 82px; padding: 4px 16px; margin-right: 10px; cursor: pointer;
  font: bold 12px Verdana, Tahoma, sans-serif; color: #fff; text-shadow: 0 -1px 0 #3d6b00;
  border: 1px solid #3f6d07; border-radius: 3px;
  background: linear-gradient(#a7d65c 0%, #7cb82f 48%, #6aa51f 52%, #5c9516 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 1px 1px 1px rgba(0,0,0,.25);
}
.cl-button:hover { background: linear-gradient(#b5e06d 0%, #88c43a 48%, #75b027 52%, #66a01c 100%); }
.cl-button:active { box-shadow: inset 1px 1px 3px rgba(0,0,0,.35); }
.cl-button:disabled, form[data-busy] .cl-button { opacity: .7; cursor: wait; }
.cl-link { font-size: 11px; }
.cl-error { margin: 3px 0 0; font-size: 11px; color: var(--cl-error); font-weight: bold; }
.cl-error[hidden], .cl-caps[hidden] { display: none; }
.cl-caps { margin: 3px 0 0; font-size: 11px; color: #8a5a00; background: #fff3c4; border: 1px solid #e3c25e;
  padding: 1px 5px; display: inline-block; }
.cl-msg { margin: 0 0 10px; padding: 6px 8px; border: 1px solid #9fc59f; background: #eef8ee; color: #1f5a1f; font-size: 11px; }
.cl-msg p { margin: 0; }
.cl-msg--error { border-color: #d99; background: #fde8e8; color: var(--cl-error); font-weight: bold; }
.cl-patient { margin: 4px 2px 14px; font-size: 11px; color: var(--cl-muted); }

/* notices */
.cl-notices { margin: 0; padding-left: 16px; }
.cl-notices li { margin-bottom: 7px; font-size: 11px; }
.cl-notices li:last-child { margin-bottom: 0; }
.cl-tips p { margin: 0 0 6px; font-size: 11px; color: var(--cl-muted); }
.cl-tips p:last-child { margin-bottom: 0; }

.cl-footer { border-top: 1px solid #b7c4d3; background: #d6e0ea; text-align: center; padding: 8px 16px;
  font-size: 10px; color: #4a5a6c; }
.cl-footer p { margin: 0; }

.cl-msg--warn { border-color: #e3c25e; background: #fff8d6; color: #6b4a00; font-weight: bold; }
.cl-button--link { text-decoration: none; display: inline-block; }
.cl-button--link:hover { color: #fff; }
.cl-actions-row { margin: 14px 0 0; }
