/* Login pages - same look as the dashboard / admission form */
:root { --bg:#f2f6fb; --surface:#fff; --surface2:#f8f9fd; --line:#dfe4f1; --fg:#141a33; --muted:#66708f;
  --p1:#2f9e4f; --p2:#1d3a6b; --good:#0fa36b; --bad:#d93a5b; --badbg:#fff1f4;
  --grad:linear-gradient(135deg,#2f9e4f 0%,#23803d 100%);
  --shadow:0 1px 2px rgba(20,26,51,.04),0 8px 24px rgba(20,26,51,.06);
  --head:"Plus Jakarta Sans","Segoe UI",Arial,sans-serif; --body:"Inter","Segoe UI",Arial,sans-serif; }
*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body.lg { margin:0; min-height:100vh; background:var(--bg); color:var(--fg); font:400 15px/1.5 var(--body); }
.lg-wrap { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px 16px; gap:18px; }
.lg-hero { width:100%; max-width:460px; border-radius:20px; padding:22px 24px 27px; background:linear-gradient(120deg,#142a52,#1d3a6b 55%,#2f6aa8); color:#fff; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow); border-bottom:5px solid #d6992f; }
.lg-mark { width:46px; height:46px; flex:none; border-radius:14px; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.4); display:grid; place-items:center; font:800 17px var(--head); }
.lg-hero h1 { margin:0; font:800 19px/1.25 var(--head); letter-spacing:-.01em; }
.lg-hero p { margin:2px 0 0; font-size:13.5px; opacity:.92; font-weight:500; }
.lg-card { width:100%; max-width:460px; background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:26px; box-shadow:var(--shadow); }
.lg-card.wide { max-width:520px; } .lg-hero.wide { max-width:520px; }
.lg-card h2 { margin:0 0 4px; font:800 20px/1.3 var(--head); }
.lg-card .sub { margin:0 0 20px; color:var(--muted); font-size:13.5px; }
.lg-f { margin-bottom:16px; min-width:0; }
.lg-f > label { display:block; margin:0 0 6px; font:600 13px var(--body); color:var(--fg); }
.lg-card input[type=text], .lg-card input[type=password], .lg-card input[type=tel], .lg-card select { width:100%; height:46px; padding:0 14px; font:500 15px var(--body); color:var(--fg); background:var(--surface); border:1px solid var(--line); border-radius:11px; outline:none; transition:border-color .15s, box-shadow .15s; -webkit-appearance:none; appearance:none; margin:0; display:block; }
.lg-card select { padding-right:38px; text-overflow:ellipsis; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2366708f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.lg-card input::placeholder { color:#9aa3bd; font-weight:400; }
.lg-card input:hover, .lg-card select:hover { border-color:#b9bfdc; }
.lg-card input:focus, .lg-card select:focus { border-color:var(--p1); box-shadow:0 0 0 4px rgba(47,158,79,.16); }
.lg-card select:disabled { background-color:var(--surface2); color:var(--muted); }
.err { display:none; margin-top:6px; color:var(--bad); font:600 12.5px/1.4 var(--body); }
.err::before { content:"!"; display:inline-grid; place-items:center; width:15px; height:15px; margin-right:6px; border-radius:50%; background:var(--bad); color:#fff; font:800 10px var(--head); vertical-align:1px; }
.lg-f:has(.err:not([style*="none"]):not(:empty)) input, .lg-f:has(.err:not([style*="none"]):not(:empty)) select { border-color:var(--bad); background-color:var(--badbg); }
.lg-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin:2px 0 18px; font-size:14px; }
.lg-row label { display:inline-flex; align-items:center; gap:8px; cursor:pointer; font-weight:500; }
.lg-row input[type=checkbox] { width:18px; height:18px; margin:0; accent-color:var(--p1); }
.lg-card a { color:var(--p1); font-weight:600; text-decoration:none; } .lg-card a:hover { text-decoration:underline; }
.lg-btn, input.lg-btn { display:flex; align-items:center; justify-content:center; width:100%; height:48px; border:0; border-radius:12px; background:var(--grad); color:#fff; font:700 15px var(--body); letter-spacing:.01em; cursor:pointer; box-shadow:0 6px 16px rgba(47,158,79,.30); transition:transform .1s, filter .15s; margin:4px 0 0; padding:0; }
.lg-btn:hover { filter:brightness(1.06); } .lg-btn:active { transform:translateY(1px); }
.lg-msg { display:block; margin-top:16px; padding:11px 14px; border-radius:12px; font:600 13.5px/1.45 var(--body); color:#8a1f38; background:var(--badbg); border:1px solid #f5c2cd; }
.lg-msg.ok { color:#0b6b47; background:#e9f8f1; border-color:#b7e6d2; }
.lg-msg:empty, .lg-msg strong:empty { display:none; }
.lg-foot { font-size:12.5px; color:var(--muted); text-align:center; }
.lg-foot a { color:var(--muted); font-weight:600; }
@media (max-width:520px) {
  .lg-wrap { justify-content:flex-start; padding:14px 12px 28px; }
  .lg-hero { padding:16px 18px; border-radius:16px; } .lg-hero h1 { font-size:17px; }
  .lg-card { padding:20px 16px; border-radius:14px; }
  .lg-card input[type=text], .lg-card input[type=password], .lg-card input[type=tel], .lg-card select { font-size:16px; height:48px; }
}
[hidden] { display:none !important; }
.lg-card .lg-f .err { display:none; }
