:root { --green: #126b47; --green-dark: #0d5338; --ink: #172b47; --muted: #69778b; --line: #dce3e9; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #f5f8f6; font-family: "Segoe UI", Arial, sans-serif; }
.background { position: relative; display: grid; min-height: 100vh; padding: 34px 20px; place-items: center; overflow: hidden; }
.background::before { content: ""; position: fixed; inset: 0; z-index: 0; background: linear-gradient(125deg, rgba(247,250,248,.93), rgba(238,246,241,.86)), url('../images/mgb_logo.png') center / min(720px, 82vw) no-repeat; }
.background::after { content: ""; position: fixed; top: -180px; right: -150px; z-index: 0; width: 430px; height: 430px; border-radius: 50%; background: rgba(18,107,71,.07); box-shadow: -900px 650px 0 90px rgba(216,165,46,.06); }
.login-box { position: relative; z-index: 1; width: min(100%, 460px); padding: 26px 34px 28px; border: 1px solid rgba(210,222,215,.9); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 24px 65px rgba(22,65,46,.14); }
.login-brand { display: flex; align-items: center; gap: 11px; padding-bottom: 20px; border-bottom: 1px solid #e8eeea; }.login-brand img { width: 46px; height: 46px; object-fit: contain; }.login-brand strong { display: block; color: var(--green-dark); font-size: 1.1rem; letter-spacing: .08em; }.login-brand span { display: block; margin-top: 2px; color: #788578; font-size: .72rem; }
.login-heading { margin: 23px 0 20px; }.login-eyebrow { color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.login-heading h1 { margin: 5px 0 7px; font-size: 1.8rem; line-height: 1.15; }.login-heading p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.form-field { margin-bottom: 15px; }.form-field label { display: block; margin-bottom: 7px; color: #31445d; font-size: .78rem; font-weight: 700; }.input-shell { position: relative; display: flex; align-items: center; }.input-shell input { width: 100%; min-height: 46px; margin: 0; padding: 11px 58px 11px 39px; border: 1px solid var(--line); border-radius: 9px; outline: none; color: #243650; background: #fbfcfd; font: inherit; font-size: .87rem; transition: border-color .2s, box-shadow .2s, background .2s; }.input-shell input:focus { border-color: #26845e; background: #fff; box-shadow: 0 0 0 3px rgba(38,132,94,.12); }.input-shell input::placeholder { color: #9aa5b4; }.input-icon { position: absolute; left: 14px; z-index: 1; width: 13px; height: 13px; color: #718096; font-size: .58rem; }.input-icon.lock { font-size: .52rem; }.password-toggle { position: absolute; right: 8px; width: auto; padding: 7px 9px; border: 0; border-radius: 6px; color: var(--green); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 750; }.password-toggle:hover { background: #eaf5ef; }
.staff-login-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px; margin-top: 5px; padding: 11px 16px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #14754e, #0e5a3c); box-shadow: 0 8px 18px rgba(18,107,71,.2); cursor: pointer; font-size: .88rem; font-weight: 750; }.staff-login-btn:hover { background: linear-gradient(135deg, #105f40, #0a4931); transform: translateY(-1px); }
.login-help { margin: 19px 0 0; color: #8894a3; font-size: .68rem; line-height: 1.4; text-align: center; }.error { display: flex; align-items: center; gap: 9px; margin: -5px 0 16px; padding: 10px 12px; border: 1px solid #f2c5c8; border-radius: 8px; color: #a42e36; background: #fff0f1; font-size: .76rem; }.error span { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #fff; background: #c5434b; font-weight: 800; }
@media (max-width: 520px) { .background { padding: 16px; align-items: start; }.login-box { margin-top: 12px; padding: 22px 20px 24px; border-radius: 14px; }.login-heading { margin-block: 20px 18px; }.login-heading h1 { font-size: 1.6rem; } }
@media (max-height: 720px) and (min-width: 521px) { .background { align-items: start; }.login-box { margin-block: 12px; } }

/* White and gold theme aligned with the application dashboards. */
body { background:#f7f5ee; }
.background::before { background:linear-gradient(125deg,rgba(255,255,255,.94),rgba(250,246,231,.88)),url('../images/mgb_logo.png') center / min(720px,82vw) no-repeat; }
.background::after { background:rgba(212,175,55,.09); box-shadow:-900px 650px 0 90px rgba(212,175,55,.07); }
.login-box { border-color:rgba(212,175,55,.48); background:rgba(255,255,255,.98); box-shadow:0 24px 65px rgba(77,59,10,.16),0 0 0 1px rgba(212,175,55,.05) inset; }
.login-brand { border-bottom-color:#eee4bd; }
.login-brand img { padding:2px; border:1px solid #e4cc75; border-radius:50%; background:#fff; }
.login-brand strong { color:#171717; }
.login-brand span { color:#81775e; }
.login-eyebrow { color:#9b7415; }
.login-heading h1 { color:#171717; }
.login-heading p { color:#756f61; }
.form-field label { color:#342f22; }
.input-shell input { border-color:#ddd2aa; color:#272317; background:#fffdf8; }
.input-shell input:focus { border-color:#c59a25; background:#fff; box-shadow:0 0 0 3px rgba(212,175,55,.18); }
.input-shell input::placeholder { color:#aaa28e; }
.input-icon, .password-toggle { color:#9b7415; }
.password-toggle:hover { background:#fff6d6; }
.staff-login-btn { border:1px solid #b88918; color:#17120a; background:linear-gradient(135deg,#efd36f,#c49728); box-shadow:0 8px 18px rgba(121,90,12,.24); font-weight:800; }
.staff-login-btn:hover { color:#efd36f; background:#171717; }
.login-help { color:#8a826f; }
