:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #16283f; }
* { box-sizing: border-box; }
body { margin: 0; background: #eaf4f8 url('../img/login-office-background.png') center / cover no-repeat fixed; }
button, input { font: inherit; }
.login-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-panel { position: relative; width: 646px; max-width: 100%; min-height: 734px; overflow: hidden; border: 2px solid rgba(255,255,255,.95); border-radius: 30px; background: rgba(255,255,255,.97); box-shadow: 0 18px 50px rgba(48,114,136,.2); }
.login-content { position: relative; z-index: 1; padding: 32px 54px 104px; }
.brand-logo { display: block; width: 260px; height: 173px; max-width: 100%; object-fit: contain; margin: 0 auto 18px; }
h1 { margin: 0; font-size: 42px; line-height: 1.2; font-weight: 700; text-align: center; letter-spacing: 0; }
.login-subtitle { color: #66768b; font-size: 23px; line-height: 1.45; margin: 8px 0 27px; text-align: center; }
.login-field { height: 62px; display: flex; align-items: center; margin-bottom: 17px; border: 1px solid #cfdeed; border-radius: 10px; overflow: hidden; background: #eaf3ff; }
.login-field:focus-within { border-color: #7abaad; box-shadow: 0 0 0 3px rgba(0,157,121,.09); }
.field-icon { width: 55px; height: 100%; flex: 0 0 55px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.55); color: #3c516b; font-size: 25px; }
.login-field input { border: 0; outline: 0; width: 100%; min-width: 0; height: 100%; padding: 0 12px; color: #112137; background: transparent; font-size: 18px; }
.login-field input::placeholder { color: #76869b; opacity: 1; }
.login-field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #eaf3ff inset; -webkit-text-fill-color: #112137; }
.password-toggle { width: 56px; height: 60px; flex: 0 0 56px; display: grid; place-items: center; border: 0; background: transparent; color: #344c67; cursor: pointer; font-size: 24px; }
.password-toggle:hover { color: #008f73; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 24px; min-height: 29px; }
.remember-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 17px; line-height: 1.4; }
.remember-label input { appearance: none; width: 29px; height: 29px; flex: 0 0 29px; position: relative; margin: 0; border: 1px solid #b4c8cd; border-radius: 4px; background: white; cursor: pointer; }
.remember-label input:checked { background: #009b7a; border-color: #009b7a; }
.remember-label input:checked::after { content: ''; position: absolute; width: 8px; height: 15px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); left: 9px; top: 3px; }
.forgot-password { color: #009578; text-decoration: none; font-size: 18px; line-height: 1.4; }
.forgot-password:hover { color: #007c65; text-decoration: underline; }
.loginbtn { width: 100%; height: 68px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 0; border-radius: 11px; background: linear-gradient(170deg, #05b789, #007e73); color: #fff; box-shadow: 0 9px 16px rgba(0,145,113,.2); cursor: pointer; font-size: 24px; font-weight: 600; }
.loginbtn i { font-size: 29px; }
.loginbtn:hover { filter: brightness(1.05); }
button:focus-visible, a:focus-visible, input[type='checkbox']:focus-visible { outline: 3px solid #268bce; outline-offset: 4px; }
.panel-decoration { position: absolute; bottom: 0; left: 0; width: 100%; height: 115px; pointer-events: none; }
.panel-decoration svg { width: 100%; height: 100%; }
.panel-decoration .fa { position: absolute; color: #7fca65; }
.leaf-large { right: 15px; top: 5px; font-size: 78px; transform: rotate(-32deg); }
.leaf-small { right: 62px; top: 55px; font-size: 42px; transform: rotate(-100deg); color: #6ebd86 !important; }
.login-error { margin-bottom: 18px; border: 1px solid #edc3bf; border-radius: 6px; padding: 12px 14px; color: #923e36; background: #fff4f2; font-size: 15px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-height: 820px) and (min-width: 601px) {
    .login-page { padding: 24px 20px; }
    .login-panel { min-height: 660px; }
    .login-content { padding-top: 24px; padding-bottom: 94px; }
    .brand-logo { width: 225px; height: 150px; margin-bottom: 12px; }
    h1 { font-size: 38px; }
    .login-subtitle { font-size: 21px; margin-bottom: 22px; }
    .login-options { margin-top: 18px; margin-bottom: 20px; }
}
@media (max-width: 600px) {
    body { background-position: 61% center; }
    .login-page { padding: 24px 16px; }
    .login-panel { min-height: 0; border-radius: 22px; }
    .login-content { padding: 28px 24px 96px; }
    .brand-logo { width: 210px; height: 140px; margin-bottom: 18px; }
    h1 { font-size: 32px; }
    .login-subtitle { font-size: 18px; margin-top: 9px; margin-bottom: 26px; }
    .login-field { height: 58px; margin-bottom: 16px; }
    .field-icon { width: 46px; flex-basis: 46px; font-size: 22px; }
    .login-field input { font-size: 16px; padding-left: 10px; }
    .password-toggle { height: 56px; width: 44px; flex-basis: 44px; font-size: 21px; }
    .remember-label { font-size: 14px; gap: 8px; }
    .remember-label input { width: 24px; height: 24px; flex-basis: 24px; }
    .remember-label input:checked::after { left: 7px; top: 2px; width: 7px; height: 12px; }
    .forgot-password { font-size: 14px; }
    .login-options { margin: 21px 0 23px; gap: 8px; }
    .loginbtn { height: 60px; font-size: 21px; }
    .panel-decoration { height: 92px; }
    .leaf-large { font-size: 62px; top: 10px; }
    .leaf-small { font-size: 32px; right: 54px; top: 48px; }
}
@media (max-width: 350px) { .login-content { padding-left: 17px; padding-right: 17px; } .remember-label, .forgot-password { font-size: 12px; } }

/* Compact sizing keeps the entire form visible on laptop screens. */
@media (min-width: 601px) {
    .login-page { padding: 20px; }
    .login-panel { width: 480px; min-height: 0; border-radius: 24px; }
    .login-content { padding: 24px 36px 76px; }
    .brand-logo { width: 180px; height: 120px; margin-bottom: 12px; }
    h1 { font-size: 30px; }
    .login-subtitle { font-size: 17px; margin: 8px 0 20px; }
    .login-field { height: 48px; margin-bottom: 14px; border-radius: 8px; }
    .field-icon { width: 45px; flex-basis: 45px; font-size: 21px; }
    .login-field input { font-size: 16px; }
    .password-toggle { width: 44px; height: 46px; flex-basis: 44px; font-size: 21px; }
    .login-options { margin: 16px 0 18px; min-height: 24px; }
    .remember-label { font-size: 14px; gap: 9px; }
    .remember-label input { width: 24px; height: 24px; flex-basis: 24px; }
    .remember-label input:checked::after { left: 7px; top: 2px; width: 7px; height: 12px; }
    .forgot-password { font-size: 14px; }
    .loginbtn { height: 52px; border-radius: 8px; font-size: 20px; gap: 12px; }
    .loginbtn i { font-size: 24px; }
    .panel-decoration { height: 74px; }
    .leaf-large { font-size: 50px; top: 7px; }
    .leaf-small { font-size: 27px; right: 47px; top: 38px; }
}
@media (max-width: 600px) {
    .login-content { padding-top: 22px; padding-bottom: 72px; }
    .brand-logo { width: 160px; height: 107px; margin-bottom: 12px; }
    h1 { font-size: 28px; }
    .login-subtitle { font-size: 16px; margin: 8px 0 20px; }
    .login-field { height: 50px; margin-bottom: 14px; }
    .password-toggle { height: 48px; }
    .login-options { margin: 18px 0 20px; }
    .loginbtn { height: 52px; font-size: 20px; }
    .panel-decoration { height: 70px; }
    .leaf-large { font-size: 46px; top: 8px; }
    .leaf-small { font-size: 25px; right: 45px; top: 36px; }
}
@media (max-height: 620px) and (min-width: 601px) {
    .login-page { padding: 16px; }
    .login-content { padding: 20px 32px 64px; }
    .brand-logo { width: 150px; height: 100px; margin-bottom: 10px; }
    h1 { font-size: 28px; }
    .login-subtitle { font-size: 16px; margin-bottom: 16px; }
    .login-field { height: 44px; margin-bottom: 12px; }
    .password-toggle { height: 42px; }
    .login-options { margin: 14px 0 16px; }
    .loginbtn { height: 48px; }
    .panel-decoration { height: 62px; }
}
