/* ==========================================================================
   Sign-in page (Views/Account/Login.cshtml, docs/LOGIN.md) — the same for every
   organisation (docs/BRANDING.md). Loaded after Bootstrap and app.css (_Head), so the
   form uses Bootstrap's own controls; everything here is prefixed sign-in-.

   Wide screens: the product on a navy panel on the left, the form on the right.
   Under 900px: one column, the product above the form, compact; under 600px the
   list of what it does is left out so the form is reached without scrolling.
   ========================================================================== */

.sign-in-page {
  min-height: 100vh;
  margin: 0;
  background: var(--dsu-bg);
}

.sign-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---- left: the product ---- */
.sign-in-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px 64px;
  color: #fff;
  background: linear-gradient(160deg, var(--dsu-navy) 0%, var(--dsu-navy-2) 60%, var(--dsu-navy-3) 100%);
}

/* Two soft rings in the corner, as on the phone app's sign-in screen. Decoration only. */
.sign-in-intro::before,
.sign-in-intro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sign-in-intro::before {
  width: 420px;
  height: 420px;
  top: -150px;
  right: -170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.sign-in-intro::after {
  width: 260px;
  height: 260px;
  top: -70px;
  right: -90px;
  background: rgba(26, 118, 209, 0.35);
}

.sign-in-intro > * {
  position: relative;
  z-index: 1;
}

.sign-in-headline {
  margin: 12px 0 0;
  font-family: "Manrope", "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: #fff;
}

.sign-in-headline em {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #6fb1ee;
}

.sign-in-lead {
  max-width: 460px;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #b6c0cc;
}

.sign-in-points {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
}

.sign-in-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sign-in-points .bi {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  color: #7cc0ff;
  background: rgba(124, 192, 255, 0.12);
}

/* ---- right: the form ---- */
.sign-in-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.sign-in-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--dsu-line);
  border-radius: 16px;
  box-shadow: var(--dsu-shadow-lg);
}

.sign-in-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--dsu-ink);
}

.sign-in-hint {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--dsu-ink-2);
}

/* The summary stays in the page for client-side checks, out of sight until there is something to say. */
.sign-in-card .validation-summary-valid {
  display: none;
}

.sign-in-card .validation-summary-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.sign-in-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 4px 0 20px;
  font-size: 14px;
}

.sign-in-go {
  padding-top: 11px;
  padding-bottom: 11px;
  font-weight: 600;
}

.sign-in-alt {
  margin: 16px 0 0;
  font-size: 14px;
  text-align: center;
}

.sign-in-foot {
  margin: 18px 0 0;
  font-size: 12.5px;
  text-align: center;
  color: var(--dsu-ink-3);
}

/* ---- narrower screens ---- */
@media (max-width: 900px) {
  .sign-in {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .sign-in-intro {
    gap: 14px;
    padding: 28px 24px 30px;
  }

  .sign-in-headline {
    font-size: 32px;
  }

  .sign-in-panel {
    padding: 28px 16px 40px;
  }
}

@media (max-width: 600px) {
  .sign-in-points,
  .sign-in-lead {
    display: none;
  }

  .sign-in-card {
    padding: 24px 20px;
  }
}
