/* Sign-in pages: a picture for each day of the week (static/img/signin),
   the day's words on the left, a frosted card on the right. */
.app-body:has(.signin) .flash-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 20; width: min(560px, calc(100vw - 32px)); }

.signin { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 360px);
  align-items: center; gap: 48px; padding: 48px clamp(24px, 6vw, 96px); overflow: hidden; background: #1e2433; }
.signin-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 50%; }
/* a soft navy shade over the left, so white words read on any day's light */
.signin-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.55) 38%, rgba(15,23,42,.12) 62%, rgba(15,23,42,0) 80%); }

.signin-words { position: relative; color: #fff; max-width: 620px; }
.signin-day { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72);
  margin: 0 0 18px; font-weight: 500; }
.signin-head { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 20px; color: #fff; }
.signin-line { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: rgba(255,255,255,.86); margin: 0; max-width: 520px; }
.signin-foot { position: absolute; left: clamp(24px, 6vw, 96px); bottom: 24px; color: rgba(255,255,255,.6); font-size: 12px; }

/* frosted: the room's light shows through, the fields stay solid white */
.signin-card { position: relative; border-radius: 16px; padding: 30px 26px 24px; color: #0f172a;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 60px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,.6); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .signin-card { background: rgba(255,255,255,.94); }
}
.signin-brand { text-align: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(15,23,42,.12); }
/* the logo sits on its own small white panel, so a logo with a white box looks intended */
.signin-brand img { height: 52px; max-width: 220px; object-fit: contain; display: block; margin: 0 auto 12px;
  background: #fff; border-radius: 10px; padding: 6px 12px; box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.signin-brand .bi { font-size: 2rem; color: var(--app-primary, #4f46e5); }
.signin-app { color: #0f172a; font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.signin-card .signin-lead { color: #334155; font-size: 14px; margin: 0 0 18px; text-align: center; }
.signin-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; text-align: center; }
.signin-card .form-label { font-weight: 500; color: #0f172a; }
.signin-card .form-control { background: #fff; padding: .55rem .75rem; }
.signin-card .form-text, .signin-card .text-secondary { color: #334155 !important; }
.signin-card .btn-primary { padding: .6rem; font-weight: 600; }
/* phones make form button rows stick to the bottom (shadcn.css); not in this card */
.signin-card form .d-flex.justify-content-end { position: static; background: none; backdrop-filter: none;
  padding: 0; margin-bottom: 1.5rem !important; }

/* phones: picture behind, words above a full-width card */
@media (max-width: 860px) {
  .signin { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 56px; align-content: start; }
  .signin-bg { background-position: 72% 50%; }
  .signin-bg::after { background: linear-gradient(180deg, rgba(15,23,42,.80) 0%, rgba(15,23,42,.55) 45%, rgba(15,23,42,.35) 100%); }
  .signin-day { font-size: 11px; margin-bottom: 6px; }
  .signin-head { font-size: 24px; margin-bottom: 8px; }
  .signin-line { font-size: 14px; line-height: 1.5; }
  .signin-card { padding: 24px 20px 20px; }
  .signin-brand { padding-bottom: 14px; margin-bottom: 14px; }
  .signin-brand img { height: 44px; margin-bottom: 8px; }
  .signin-app { font-size: 18px; }
  .signin-foot { left: 16px; bottom: 16px; }
  /* a message (wrong password ...) sits above the words, not over them */
  .app-body:has(.flash-wrap) .signin { padding-top: 96px; }
}
