/* MoAL portal: full-screen agricultural landscape and single real login form. */
:root { --navy:#173d51; --ink:#193240; --muted:#6e7d87; --line:#dce5e9; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; font-family:Inter,'Segoe UI',Arial,sans-serif; -webkit-font-smoothing:antialiased; }
body { color:var(--ink); background:#d1e1d7; }
button, input { font:inherit; }
.portal-background { position:fixed; inset:0; background:#89a38c url('moal_centered_agri_v4.webp') center center / cover no-repeat; }
.portal-shade { position:fixed; inset:0; background:linear-gradient(180deg,rgba(13,35,43,.08),rgba(13,35,43,.16) 55%,rgba(13,35,43,.32)); }
.portal-layout { position:relative; z-index:1; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:45px 20px 76px; }
.portal-card { width:min(100%,495px); padding:32px 39px 30px; border-radius:22px; border:1px solid rgba(255,255,255,.78); background:rgba(255,255,255,.94); box-shadow:0 26px 75px rgba(13,37,45,.21); backdrop-filter:blur(16px); }
.identity { text-align:center; margin:0 0 26px; }
.identity-logo { height:72px; width:72px; margin:0 auto 18px; display:flex; align-items:center; justify-content:center; background:#fff; border-radius:17px; box-shadow:0 5px 22px rgba(35,55,50,.07); }
.identity-logo img { max-width:61px; max-height:61px; object-fit:contain; }
.identity-kicker { color:#586e79; text-transform:uppercase; letter-spacing:.17em; font-size:10px; font-weight:800; }
.identity-ministry { color:#1d3e4e; font-size:18px; font-weight:700; line-height:1.35; letter-spacing:-.035em; margin-top:7px; }
.identity-rule { height:2px; width:40px; border-radius:4px; margin:17px auto 15px; background:#3f8993; }
.identity h1 { font-weight:750; font-size:43px; letter-spacing:-.06em; line-height:1.14; margin:0 0 9px; color:#183545; }
.identity p { color:var(--muted); margin:0; line-height:1.55; font-size:14px; }
.portal-field { display:block; font-weight:700; font-size:13px; margin:0 0 9px; color:#213a48; }
.portal-input { width:100%; border:1px solid #d7e1e8; background:#f2f6fa; border-radius:11px; height:54px; padding:0 15px; color:#183645; outline:none; font-size:14px; transition:box-shadow .16s,border-color .16s,background .16s; }
.portal-input::placeholder { color:#83929e; }
.portal-input:focus { border-color:#4c8990; background:#fff; box-shadow:0 0 0 3px rgba(64,132,142,.15); }
.password-label { margin-top:21px; }
.password-control { position:relative; }
.password-control input { padding-right:65px; }
.password-toggle { position:absolute; right:8px; top:0; height:54px; border:0; background:transparent; color:#647a84; padding:0 10px; cursor:pointer; font-size:12px; font-weight:700; }
.password-toggle:hover { color:#133e52; }
.sign-in { display:flex; width:100%; align-items:center; justify-content:center; gap:8px; height:54px; margin-top:29px; border:0; border-radius:10px; background:var(--navy); color:white; font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 7px 20px rgba(21,62,82,.17); }
.sign-in:hover { background:#225872; }
.sign-in:focus-visible,.password-toggle:focus-visible { outline:3px solid #78b3b7; outline-offset:3px; }
.portal-security { border-top:1px solid var(--line); padding:20px 0 0; margin:22px 0 0; color:#73848d; font-size:11px; line-height:1.65; text-align:center; }
.auth-error,.field-error { border:1px solid #e8bbbb; color:#9b3030; background:#fff4f3; border-radius:8px; padding:10px 12px; font-size:12px; margin-bottom:12px; }
.auth-error ul,.field-error ul { margin:0; padding-left:20px; }
.portal-footer { position:relative; z-index:2; display:flex; justify-content:space-between; gap:14px; align-items:center; color:#fff; font-size:11px; text-shadow:0 2px 8px rgba(0,0,0,.65); padding:0 30px 18px; margin-top:-39px; }
@media(max-width:600px) {
  .portal-layout { padding:20px 14px 80px; align-items:center; }
  .portal-card { padding:26px 22px 23px; border-radius:18px; }
  .identity-logo { height:61px; width:61px; margin-bottom:12px; }
  .identity-logo img { max-width:53px; max-height:53px; }
  .identity-ministry { font-size:16px; }
  .identity h1 { font-size:36px; }
  .portal-footer { text-align:center; justify-content:center; flex-wrap:wrap; font-size:10px; padding:0 14px 14px; }
  .portal-footer span:first-child { display:none; }
}
@media(prefers-reduced-motion:reduce){ *{transition:none!important;} }
