* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; color: #1d3951; font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(135deg, #f0f7fd, #fafcfe); }
.login-waves { position: fixed; inset: auto 0 0; width: 100%; height: 56vh; z-index: -1; pointer-events: none; }
.login-shell { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.login-card { zoom: .8; width: 594px; max-width: 100%; padding: 36px 46px; background: rgba(255,255,255,.97); border: 1px solid #ffffffc9; border-radius: 38px; box-shadow: 0 18px 36px rgba(33,76,111,.17); }
.login-logo { display: block; width: 420px; max-width: 100%; height: auto; margin: 0 auto 28px; }
.login-divider { position: relative; height: 2px; margin: 0 12px 30px; background: #e7edf3; }
.login-divider::after { content: ""; position: absolute; width: 76px; height: 6px; left: 50%; top: -2px; transform: translateX(-50%); border-radius: 6px; background: #086cc8; }
h1 { margin: 0 0 24px; text-align: center; font-size: 28px; line-height: 1.3; letter-spacing: -.5px; font-weight: 700; }
.login-field { margin-bottom: 20px; }
.login-field > label { display: flex; align-items: center; gap: 12px; margin: 0 4px 9px; font-size: 17px; font-weight: 650; }
.login-field label .fa { width: 20px; text-align: center; font-size: 20px; }
.login-input { display: block; width: 100%; height: 48px; padding: 12px 18px; border: 1px solid #d5dee8; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px #edf0f5; color: #1d3951; font: 16px "Segoe UI", Arial, sans-serif; }
.login-input::placeholder { color: #8591a1; opacity: 1; }
.login-input:focus { outline: none; border-color: #1478cf; box-shadow: 0 0 0 3px #1478cf1a; }
.login-password { position: relative; }
.login-password .login-input { padding-right: 52px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #7d8792; font-size: 18px; cursor: pointer; }
.password-toggle:hover { background: #edf5fc; color: #126cc2; }
.login-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 26px 3px 28px; font-size: 15px; }
.remember-me { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.remember-me input { width: 18px; height: 18px; margin: 0; accent-color: #086cc8; cursor: pointer; }
a { color: #056ac0; text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
.login-submit-wrap { position: relative; }
.login-submit { display: block; width: 100%; min-height: 56px; padding: 12px 20px 12px 52px; border: 1px solid #428fc5; border-radius: 10px; background: linear-gradient(160deg, #5899c9 0%, #0961a6 38%, #075493 100%); color: #fff; font: 700 21px "Segoe UI", Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 4px #18547e16; }
.login-submit:hover { background: linear-gradient(160deg, #4388bc, #075a9b 38%, #06477f); }
.login-submit-wrap > .fa { position: absolute; left: calc(50% - 52px); top: 50%; transform: translateY(-50%); color: #fff; font-size: 25px; pointer-events: none; }
.login-error { display: block; margin-top: 14px; padding: 10px 12px; color: #a72e3e; background: #fff0f2; border: 1px solid #f1d2d8; border-radius: 8px; font-size: 14px; }
.login-error:empty { display: none; }
.login-provider { margin: 26px 0 0; padding: 15px 10px; border-radius: 11px; background: #f3f6fa; text-align: center; font-size: 16px; color: #50637a; }
.login-provider a { font-weight: 700; white-space: nowrap; }
button:focus-visible, a:focus-visible, .login-submit:focus-visible, .remember-me input:focus-visible { outline: 3px solid #1478cf; outline-offset: 3px; }
@media (max-width: 600px) {
    .login-shell { padding: 20px 14px; }
    .login-card { padding: 28px 24px; border-radius: 26px; }
    .login-logo { margin-bottom: 24px; }
    h1 { font-size: 23px; }
    .login-field > label { font-size: 15px; }
    .login-provider { font-size: 14px; }
}
@media (max-height: 740px) and (min-width: 601px) {
    .login-shell { padding: 20px; }
    .login-card { padding-top: 24px; padding-bottom: 24px; }
    .login-logo { width: 350px; margin-bottom: 20px; }
    .login-divider { margin-bottom: 22px; }
}
