/* Login (Inspectmite redesign, 2026-11-05). Colours from the app's im-ui tokens; Inter from the
   Angular app's copy. The brand panel starts at #2b5782, the tenant login logo's own background,
   so the logo sits on it without an edge. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/app/assets/im-ui/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/app/assets/im-ui/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/app/assets/im-ui/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/app/assets/im-ui/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/app/assets/im-ui/fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
  --lg-navy: #0c2c5a;
  --lg-ink: #0b2447;
  --lg-blue: #174f91;
  --lg-muted: #61738d;
  --lg-line: #d8e1ec;
  --lg-line-strong: #bdcbdc;
  --lg-green: #2fbf4f;
  --lg-danger: #a52c2c;
  --lg-danger-bg: #fff0f0;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

.lg-body {
  margin: 0;
  color: var(--lg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  /* Subtle: a soft blue glow top left, a faint green one bottom right, on the app's canvas grey. */
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(43, 87, 130, .20), transparent 62%),
    radial-gradient(780px 480px at 104% 108%, rgba(47, 191, 79, .13), transparent 60%),
    radial-gradient(600px 400px at 92% 4%, rgba(23, 79, 145, .08), transparent 65%),
    linear-gradient(180deg, #f8fafd 0%, #edf2f8 100%);
  background-attachment: fixed;
}

.lg-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 20px 28px;
}

.lg-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(216, 225, 236, .9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(12, 44, 90, .14), 0 8px 22px rgba(12, 44, 90, .06);
  animation: lg-rise .45s ease-out both;
}

@keyframes lg-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---- brand panel ---- */
.lg-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 44px 44px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, #2b5782 0%, #2b5782 18%, #1f4a78 52%, #10365f 100%);
  isolation: isolate;
}

/* Soft light shapes, kept faint. */
.lg-brand::before,
.lg-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.lg-brand::before {
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(47, 191, 79, .22), transparent 68%);
}

.lg-brand::after {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 30%;
  background: radial-gradient(circle, rgba(143, 185, 234, .16), transparent 70%);
}

/* A halo in the logo's own background colour, fading out, so the logo's rectangle has no edge
   where the gradient moves away from #2b5782. */
.lg-logo {
  position: relative;
  align-self: flex-start;
}

.lg-logo::before {
  content: "";
  position: absolute;
  inset: -40px -70px;
  z-index: -1;
  background: radial-gradient(closest-side, #2b5782 72%, rgba(43, 87, 130, 0) 100%);
  pointer-events: none;
}

.lg-logo.is-missing::before { display: none; }

.lg-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.lg-logo-text {
  display: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.lg-logo.is-missing img { display: none; }
.lg-logo.is-missing .lg-logo-text { display: block; }

.lg-brand-copy {
  margin-top: auto;
}

.lg-brand-copy h2 {
  max-width: 360px;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.lg-brand-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 500;
}

.lg-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 600;
}

.lg-point-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
}

.lg-point-icon svg,
.lg-alert svg,
.lg-reveal svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- form ---- */
.lg-form-panel {
  display: flex;
  align-items: center;
  padding: 48px 52px;
}

.lg-form {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.lg-form h1 {
  margin: 0;
  color: var(--lg-navy);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.lg-lead {
  margin: 8px 0 28px;
  color: var(--lg-muted);
  font-size: 15px;
}

.lg-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 11px 14px;
  border: 1px solid #f0c4c4;
  border-radius: 10px;
  color: var(--lg-danger);
  background: var(--lg-danger-bg);
  font-size: 14px;
  font-weight: 600;
}

.lg-alert svg { flex: none; margin-top: 1px; }

.lg-field { margin-bottom: 18px; }

.lg-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--lg-navy);
  font-size: 13px;
  font-weight: 700;
}

.lg-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--lg-line-strong);
  border-radius: 10px;
  color: var(--lg-ink);
  background: #fbfcfe;
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.lg-input::placeholder { color: #8695aa; }

.lg-input:hover { border-color: #9fb2c9; }

.lg-input:focus {
  border-color: var(--lg-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 79, 145, .13);
}

.lg-password { position: relative; }

.lg-password .lg-input { padding-right: 50px; }

.lg-reveal {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--lg-muted);
  background: transparent;
  cursor: pointer;
}

.lg-reveal:hover { color: var(--lg-navy); background: #eef3f9; }
.lg-reveal[aria-pressed="true"] { color: var(--lg-blue); }

.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 24px;
  font-size: 14px;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lg-ink);
  font-weight: 500;
  cursor: pointer;
}

.lg-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--lg-blue);
}

.lg-link {
  color: var(--lg-blue);
  font-weight: 700;
  text-decoration: none;
}

.lg-link:hover { text-decoration: underline; }

.lg-submit {
  width: 100%;
  height: 50px;
  border: 1px solid #173f75;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, #2a62a3 0%, #174f91 55%, #143f75 100%);
  box-shadow: 0 10px 22px rgba(23, 79, 145, .25), inset 0 1px 0 rgba(255, 255, 255, .18);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, filter .15s;
}

.lg-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 26px rgba(23, 79, 145, .3), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit:disabled { cursor: wait; filter: saturate(.7); }

.lg-input:focus-visible,
.lg-submit:focus-visible,
.lg-reveal:focus-visible,
.lg-link:focus-visible,
.lg-check input:focus-visible {
  outline: 3px solid #e5a82d;
  outline-offset: 2px;
}

.lg-footer {
  color: var(--lg-muted);
  font-size: 13px;
  text-align: center;
}

/* ---- password recovery ---- */
.lg-alert.success {
  border-color: #b9e2c6;
  color: #16723a;
  background: #e9f7ee;
}

.lg-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--lg-blue);
  background: linear-gradient(160deg, #edf4fc, #dfeaf7);
}

.lg-badge.warn {
  color: #a55b00;
  background: linear-gradient(160deg, #fff6e0, #ffecc2);
}

.lg-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-lead strong { color: var(--lg-ink); word-break: break-all; }

.lg-note {
  margin: -10px 0 24px;
  color: var(--lg-muted);
  font-size: 14px;
}

.lg-submit-link {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.lg-back {
  margin: 18px 0 0;
  font-size: 14px;
  text-align: center;
}

.lg-field-error {
  margin: 7px 0 0;
  color: var(--lg-danger);
  font-size: 13px;
  font-weight: 600;
}

.lg-field-error[hidden] { display: none; }

/* ---- narrow screens: the brand panel becomes a band above the form ---- */
@media (max-width: 820px) {
  .lg-shell { justify-content: flex-start; padding: 20px 14px; }
  .lg-card { grid-template-columns: 1fr; max-width: 480px; border-radius: 16px; }
  .lg-brand { gap: 14px; padding: 24px 26px; }
  .lg-logo img { max-width: 220px; }
  .lg-brand-copy { margin-top: 0; }
  .lg-brand-copy h2 { font-size: 20px; }
  .lg-brand-copy p { margin-top: 4px; font-size: 14px; }
  .lg-points { display: none; }
  .lg-form-panel { padding: 30px 26px 34px; }
  .lg-form h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-card { animation: none; }
  .lg-input, .lg-submit { transition: none; }
}
