/* ------------------------------------------------------------------
   Sign-in page.

   Two panels: the form, and a dark field carrying a rhythm strip.
   The strip is the one bold element on the page -- everything around
   it stays quiet. Colours are the college's own: #A6192E is the
   Paramedic red, #005778 the AEMT blue.
   ------------------------------------------------------------------ */

.lg {
  --red:      #A6192E;
  --red-deep: #76232F;
  --navy:     #005778;
  --navy-ink: #00232F;
  --navy-mid: #013A4F;
  --gray:     #63666A;
  --paper:    #FFFFFF;
  --line:     #DFE3E6;

  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 9fr);
  background: var(--paper);
  font-family: "Eurostile", "Eurostile LT Std", "Square721 BT",
               "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- left: the form ---------- */
.lg-form {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px clamp(28px, 5vw, 76px);
}
.lg-inner { width: 100%; max-width: 384px; margin: 0 auto; }

.lg-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 34px; }
.lg-mark img { height: 46px; width: auto; display: block; }
.lg-mark b { display: block; font-size: 16px; letter-spacing: .055em; color: var(--navy-ink); }
.lg-mark span { display: block; font-size: 12.5px; color: var(--gray); margin-top: 2px; }

.lg-form h1 {
  font-size: 27px; line-height: 1.2; margin: 0 0 7px;
  color: var(--navy-ink); font-weight: 600; letter-spacing: .005em;
}
.lg-form .lg-sub { margin: 0 0 26px; color: var(--gray); font-size: 14px; line-height: 1.5; }

.lg-field { display: block; margin-bottom: 15px; }
.lg-field span {
  display: block; font-size: 13px; color: var(--navy-ink);
  margin-bottom: 6px; font-weight: 500;
}
.lg-field input {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  font: inherit; font-size: 15px; color: var(--navy-ink);
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  transition: border-color .14s, box-shadow .14s;
}
.lg-field input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 87, 120, .16);
}

.lg-go {
  width: 100%; margin-top: 9px; padding: 12px 16px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: var(--red); border: 0; border-radius: 4px;
  cursor: pointer; transition: background .14s;
}
.lg-go:hover { background: var(--red-deep); }
.lg-go:focus-visible { outline: 3px solid rgba(0, 87, 120, .45); outline-offset: 2px; }

.lg-err {
  margin: 0 0 18px; padding: 11px 13px; border-radius: 4px;
  background: #FCEEF0; border-left: 3px solid var(--red);
  color: var(--red-deep); font-size: 13.5px; line-height: 1.45;
}

.lg-foot {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--gray); line-height: 1.6;
}

/* ---------- right: the rhythm strip ---------- */
.lg-strip {
  position: relative; overflow: hidden;
  background: var(--navy-ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 44px clamp(28px, 4vw, 56px);
}
/* The grid is the paper the strip is printed on, so it tiles with the
   panel rather than scaling with the waveform. */
.lg-strip {
  background-image:
    repeating-linear-gradient(to right,  rgba(255,255,255,.055) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.055) 0 1px, transparent 1px 40px);
}
.lg-svg {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-58%);
  width: 100%; height: auto;
}

.lg-trace { fill: none; stroke: #4FD1A5; stroke-width: 2.4;
            stroke-linecap: round; stroke-linejoin: round; }

.lg-caption { position: relative; }
.lg-caption h2 {
  margin: 0 0 9px; color: #fff; font-size: clamp(23px, 2.5vw, 33px);
  font-weight: 600; letter-spacing: .012em; line-height: 1.22;
}
.lg-caption p {
  margin: 0; color: #A9C4D0; font-size: 14.5px; line-height: 1.6; max-width: 46ch;
}
.lg-levels { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.lg-levels li {
  font-size: 12px; letter-spacing: .04em; color: #CBDDE5;
  padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px;
}
.lg-levels li.on { background: var(--red); border-color: var(--red); color: #fff; }

/* The trace draws once on arrival, then stops. */
@media (prefers-reduced-motion: no-preference) {
  .lg-trace { stroke-dasharray: 4200; stroke-dashoffset: 4200;
              animation: lg-draw 2.3s cubic-bezier(.4, 0, .25, 1) .15s forwards; }
}
@keyframes lg-draw  { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; }
  .lg-strip { order: -1; min-height: 188px; padding: 24px; justify-content: flex-end; }
  .lg-caption h2 { font-size: 21px; }
  .lg-caption p { display: none; }
  .lg-form { padding: 32px 24px 44px; }
  .lg-mark { margin-bottom: 24px; }
}
