/* Sign-in screen — the client's design of 15-oct-2026: one rounded card, the
   form on the left, a dark-green panel on the right with a real MradiQ
   dashboard on a laptop. Colours are the tokens from mradiq.css. */

body.auth { background: #E9EDEB; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.auth-shell {
  width: min(1400px, 100%); display: grid; grid-template-columns: 0.9fr 1.1fr;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(19, 37, 27, .14), 0 2px 6px rgba(19, 37, 27, .06);
}

/* ------------------------------------------------------------------ form */
.auth-card { padding: 40px 64px 32px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.auth-card .brand { display: inline-block; margin: 0 0 28px 20px; }
.auth-card .brand-logo { width: 220px; height: auto; display: block; }
.auth-card h1 { font-size: 42px; letter-spacing: -.035em; font-weight: 800; color: #111814; margin-left: 20px; line-height: 1.05; }
.auth-card .lede { color: var(--ink-soft); font-size: 19px; line-height: 1.45; margin: 10px 0 24px 20px; max-width: 440px; }
.auth-card form { display: flex; flex-direction: column; gap: 15px; }

.rolepick { border: 0; padding: 0; margin: 0; }
.rolepick legend { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; padding: 0; }
.rolepick .opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rolepick label { position: relative; cursor: pointer; display: block; }
.rolepick input { position: absolute; opacity: 0; pointer-events: none; }
.rolepick .card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 118px;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 16px 14px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rolepick .card svg { width: 30px; height: 30px; color: #2D3B33; margin-bottom: 8px; }
.rolepick .card b { font-size: 16px; color: var(--ink); }
.rolepick .card small { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.rolepick .tick { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: #087443; color: #fff; display: none; place-items: center; }
.rolepick .tick svg { width: 14px; height: 14px; color: #fff; margin: 0; stroke-width: 3; }
.rolepick label:hover .card { border-color: #B9D8C6; }
.rolepick input:checked + .card { border-color: var(--green-700); background: var(--green-tint); box-shadow: 0 0 0 3px rgba(8, 116, 67, .08); }
.rolepick input:checked + .card > svg:first-child { color: var(--green-700); }
.rolepick input:checked + .card .tick { display: grid; }
.rolepick input:focus-visible + .card { outline: 2px solid var(--green-700); outline-offset: 2px; }

.auth-card .field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.auth-card .inp { position: relative; display: block; }
.auth-card .inp > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none; }
.auth-card .inp input {
  width: 100%; font: inherit; font-size: 15.5px; font-weight: 400; color: var(--ink);
  padding: 12px 48px 12px 50px; border: 1.5px solid var(--line); border-radius: 10px; background: #F8FAF9;
}
.auth-card .inp input:focus { outline: none; border-color: var(--green-700); background: #fff; box-shadow: 0 0 0 3px rgba(8, 116, 67, .1); }
.auth-card .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; border-radius: 8px; }
.auth-card .eye:hover { background: var(--line-soft); }
.auth-card .eye svg { width: 20px; height: 20px; }
.auth-card .row { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; }
.auth-card .remember { display: flex; align-items: center; gap: 10px; color: var(--ink); cursor: pointer; }
.auth-card .remember input { width: 19px; height: 19px; accent-color: var(--green-700); }
.auth-card .row a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.auth-card .row a:hover { text-decoration: underline; }
.auth-card .act.big { font-size: 17px; font-weight: 700; padding: 13px; border-radius: 10px; justify-content: center; display: flex; gap: 10px; }
.auth-card .act.primary.big { background: #087443; border-color: #087443; }
.auth-card .act.ghost { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-700); text-decoration: none; margin-top: -2px; }
.auth-card .act.ghost:hover { background: var(--green-tint); }
.auth-card .foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }
.auth-card .foot svg { width: 18px; height: 18px; }
.auth-card .foot span { color: var(--ink-faint); }
.auth-card .alt { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.auth-card .alt a { color: var(--green-700); font-weight: 600; }
.auth-card #notices .notice { margin-bottom: 4px; }

/* ------------------------------------------------------------ green panel */
.auth-side {
  position: relative; color: #fff; padding: 46px 52px 34px; display: flex; flex-direction: column; min-width: 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255, 255, 255, .12), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 64px),
    #087443;
}
.auth-side .eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .85); font-weight: 600; }
.auth-side h2 { font-size: 44px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 14px; max-width: 560px; }
.auth-side h2 em { font-style: normal; color: #D4F8B0; }
.auth-side .sub { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .92); max-width: 520px; }
.auth-side .laptop { margin: 26px 0 28px; align-self: center; width: min(640px, 100%); }
.auth-side .laptop .screen { background: #0B0F0D; border-radius: 14px 14px 0 0; padding: 10px 10px 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.auth-side .laptop img { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; }
.auth-side .laptop .base { height: 14px; background: linear-gradient(#C9CFCC, #8E9692); border-radius: 0 0 16px 16px; margin: 0 -26px; }
.auth-side .points { list-style: none; padding: 26px 0 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .25); }
.auth-side .points li { display: flex; gap: 14px; padding: 0 18px; font-size: 14px; color: rgba(255, 255, 255, .88); line-height: 1.5; }
.auth-side .points li + li { border-left: 1px solid rgba(255, 255, 255, .25); }
.auth-side .points li:first-child { padding-left: 0; }
.auth-side .points b { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; line-height: 1.3; }
.auth-side .points .ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; color: #fff; }
.auth-side .points .ic svg { width: 24px; height: 24px; }

@media (max-width: 1200px) {
  .auth-card { padding: 44px 40px 34px; }
  .auth-side { padding: 44px 36px 34px; }
  .auth-side h2 { font-size: 36px; }
  .auth-side .points { grid-template-columns: 1fr; gap: 16px; }
  .auth-side .points li, .auth-side .points li:first-child { padding: 0; border: 0; }
}
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 640px; }
  .auth-side { display: none; }
}
@media (max-width: 560px) {
  .auth-page { padding: 0; place-items: stretch; }
  .auth-shell { border-radius: 0; box-shadow: none; }
  .auth-card { padding: 30px 16px 28px; }
  .auth-card .brand { margin: 0 0 28px; } .auth-card h1 { margin-left: 0; font-size: 34px; } .auth-card .lede { margin-left: 0; font-size: 16px; }
  .rolepick .opts { grid-template-columns: 1fr; gap: 8px; }
  .rolepick .card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 12px 14px; }
  .rolepick .card svg { margin: 0; width: 24px; height: 24px; }
  .rolepick .card small { flex-basis: 100%; padding-left: 36px; margin-top: -4px; }
}
#mfaForm { display: flex; flex-direction: column; gap: 14px; }
#mfaForm.hidden, #loginForm.hidden { display: none; }
.mfa-hint { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: -4px 0 0 2px; }
.mfa-back { text-align: center; font-size: 13.5px; color: var(--green-700); font-weight: 600; }
