/*
 * The login and password pages, in the Mprint árkalkulátor's own look (Ervin TG 4217: the calculator is the pattern).
 * The rules are the kalkulator's public/style.css (785fbbe: :root 8-27, inputs 219-245, buttons 246-258, login 836-866,
 * the phone layout 893-907), cut to what these pages use. Self-contained: no sb-admin, no Bootstrap, no CDN.
 */
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Bold.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/Lato-Black.ttf") format("truetype"); font-weight: 800 900; font-style: normal; font-display: swap; }
:root {
  --ink: #0f172a; --ink2: #334155; --muted: #6b7489; --line: #e8ebf2; --fill: #f1f3f8;
  --font: "Lato", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent: #00184a; --accent-ink: #ffffff;
  --ok: #15803d; --ok-soft: #e4f4e9; --bad: #b42318; --bad-soft: #fdecea;
  --radius-s: 10px; --control-h: 36px; --control-h-primary: 42px;
  --magenta: #ec008c; --magenta-hover: #c4007a; --magenta-press: #a3005f; --magenta-soft: #fde6f3;
  --cmyk-c: #00a0e3; --cmyk-m: #ec008c; --cmyk-y: #ffd400; --cmyk-k: #1d1d1b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); font: 14px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
body.login-page { background: #f4f3ef; }
a { color: var(--accent); font-weight: 700; }
a:hover { color: var(--magenta-hover); }

/* fields and the button */
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
input { font: inherit; color: var(--ink); background: var(--fill); border: 1px solid transparent; border-radius: var(--radius-s); padding: 6px 10px; min-height: var(--control-h); max-width: 100%; }
input::placeholder { color: #646d82; opacity: 1; }
input[type=checkbox] { margin: 0; } /* its look and its label's type: css/mprint-jelolo.css (Béci 7618) */
input:focus { outline: none; background-color: #fff; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--magenta-soft); }
button { font: inherit; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 6px 16px; border-radius: var(--radius-s); cursor: pointer; min-height: var(--control-h); white-space: nowrap; }
button:focus-visible { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px var(--magenta-soft); }
button.primary.add-new { background: var(--magenta); border-color: var(--magenta); color: #fff; box-shadow: 0 6px 16px rgba(236,0,140,.28); }
button.primary.add-new:hover { background: var(--magenta-hover); border-color: var(--magenta-hover); }
button.primary.add-new:active { background: var(--magenta-press); border-color: var(--magenta-press); }

/* the page: a navy brand panel (logo, register mark, headline, CMYK strip) beside the form */
.login { display: grid; grid-template-columns: 44% minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.login-side { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--accent); color: var(--accent-ink); padding: 56px 56px 0; }
.login-band { position: relative; z-index: 1; display: flex; align-items: center; min-height: 44px; }
.login-band img { display: block; width: auto; height: auto; max-height: 44px; max-width: 100%; }
.login-mark { --d: min(29vw, 46vh); position: absolute; left: 86%; top: 37%; width: 0; height: 0; pointer-events: none; }
.login-mark i { position: absolute; display: block; }
.login-mark .ring { width: var(--d); height: var(--d); left: calc(var(--d) / -2); top: calc(var(--d) / -2); border: 1.5px solid rgba(255,255,255,.16); border-radius: 50%; }
.login-mark .ring.inner { --di: calc(var(--d) * .465); width: var(--di); height: var(--di); left: calc(var(--di) / -2); top: calc(var(--di) / -2); border: 2px solid var(--magenta); opacity: .7; }
.login-mark .hl { height: 1.5px; width: calc(var(--d) * 1.2); left: calc(var(--d) * -.6); top: -.75px; background: rgba(255,255,255,.16); }
.login-mark .vl { width: 1.5px; height: calc(var(--d) * 1.18); top: calc(var(--d) * -.59); left: -.75px; background: rgba(255,255,255,.16); }
.login-claim { position: relative; z-index: 1; margin-top: auto; padding: 48px 0 92px; }
.login-claim h1 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; font-weight: 900; letter-spacing: -.025em; color: #fff; }
.login-claim h1 em { font-style: normal; color: var(--magenta); }
.cmyk { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: grid; grid-template-columns: repeat(4, 1fr); }
.cmyk i:nth-child(1) { background: var(--cmyk-c); } .cmyk i:nth-child(2) { background: var(--cmyk-m); }
.cmyk i:nth-child(3) { background: var(--cmyk-y); } .cmyk i:nth-child(4) { background: var(--cmyk-k); }
.login-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login-body { width: 100%; max-width: 420px; }
/* the copyright under the form (Ervin TG 5667, Béci 7997): the column holds the form and it, the form as centred as before */
.login-main { flex-direction: column; }
.login-copyright { width: 100%; max-width: 420px; margin-top: 28px; text-align: center; font-size: 12px; color: #6b7489; }
.login .kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta-hover); } /* 5.2:1 on the warm grey */
.login h2 { margin: 12px 0 0; font-size: 36px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.login .lead { margin: 12px 0 0; color: var(--ink2); }
.login form { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.login label.f { gap: 8px; }
.login label.f > span { font-weight: 700; color: var(--ink2); }
.login input:not([type=checkbox]) { min-height: 42px; font-size: 16px; padding: 8px 12px; background: #fff; border-color: #d3d6de; }
.login label.check { display: flex; align-items: center; gap: 8px; }
.login button.primary.add-new { min-height: var(--control-h-primary); margin-top: 4px; font-size: 15px; box-shadow: inset 0 -3px 0 var(--magenta-press), 0 6px 16px rgba(236,0,140,.22); }
.login-help { margin: 28px 0 0; font-size: 13px; color: #5b6478; } /* 5.3:1 on the warm grey */
.err, .ok { padding: 8px 12px; border-radius: var(--radius-s); font-size: 13px; margin: 24px 0 0; }
.err { color: var(--bad); background: var(--bad-soft); }
.err ul { margin: 0; padding-left: 18px; }
.ok { color: var(--ok); background: var(--ok-soft); }

/* phones: a low navy band (logo, smaller headline, CMYK strip) over the form; no register mark */
@media (max-width: 760px) {
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-side { padding: 20px 16px 0; }
  .login-band { min-height: 32px; }
  .login-band img { max-height: 32px; }
  .login-mark { display: none; }
  .login-claim { margin-top: 0; padding: 18px 0 26px; }
  .login-claim h1 { font-size: 30px; }
  .cmyk { height: 6px; }
  .login-main { align-items: flex-start; padding: 32px 16px 40px; }
  .login h2 { font-size: 28px; }
  .login form { margin-top: 24px; gap: 18px; }
}
