:root { color-scheme: light; --brand: #00649d; }
* { box-sizing: border-box; }
body { margin: 0; color: #434c52; font: 16px/1.65 "Open Sans", "Segoe UI", Arial, sans-serif; background: #e3e9f1; }
a { color: var(--brand); }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -100px; background: white; padding: 10px; z-index: 10; }
.skip-link:focus { top: 8px; }
header { position: relative; z-index: 2; background: white; }
.contact { min-height: 30px; padding: 4px 3%; font-size: 12px; text-align: right; border-bottom: 1px solid #e3e9f1; }
.contact a { color: inherit; text-decoration: none; }
.header-main { min-height: 116px; padding: 5px 3%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { display: block; width: 200px; height: 106px; object-fit: contain; }
.brand-cw .brand img { width: 325px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
nav a { color: #434c52; font-size: 14px; text-decoration: none; }
nav a[aria-current] { color: var(--brand); }
.login-background { position: relative; min-height: calc(100svh - 146px); padding: 50px 24px 80px; background: url('/assets/images/logo.png') -120px -96px / 48% auto no-repeat #e3e9f1; background-blend-mode: soft-light; overflow: hidden; }
#bg-video { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.login-panel { position: relative; width: 420px; max-width: 100%; margin: 0 auto; left: 19%; padding: 0 20px 20px; z-index: 1; }
.login-panel h1 { font-size: 20px; line-height: 1.4; font-weight: 600; color: #000; text-align: center; margin: 0 0 28px; }
.login-panel label { display: block; font-size: 14px; margin-top: 12px; color: #222; }
.login-panel input { display: block; width: 100%; padding: 17px 12px; margin: 4px 0 20px; background: #fff; color: #222; border: 1px solid #c1c1f5; border-radius: 15px; font: inherit; font-size: 23px; }
.login-panel button { display: block; min-width: 150px; min-height: 60px; margin: 24px 0 12px auto; padding: 10px 24px; background: var(--brand); color: white; border: 2px solid transparent; border-radius: 35px; font: inherit; font-size: 22px; cursor: pointer; }
.login-panel button:hover { background: white; color: #000; border-color: #000; }
.login-panel button:disabled { opacity: .65; cursor: wait; }
.login-panel form > a { display: block; text-align: right; }
:focus-visible { outline: 3px solid #00649d; outline-offset: 4px; }
#login-status { white-space: pre-line; color: #303d46; background: rgba(255,255,255,.93); border-radius: 8px; padding: 12px; margin: 22px 0 0; }
#login-status:empty { padding: 0; margin: 0; }
#login-status[data-state="error"] { color: #8d2020; }
#login-status[data-state="pending"] { display: flex; align-items: center; gap: 10px; }
#login-status[data-state="pending"]::before {
    content: "";
    box-sizing: border-box;
    flex: 0 0 18px;
    height: 18px;
    border: 2px solid #c0d1dd;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: login-spin .8s linear infinite;
}
@keyframes login-spin { to { transform: rotate(1turn); } }
.brand-cw .login-background { background-color: #e3e9f1; }
.brand-cw .login-panel { background: rgba(255,255,255,.92); border-radius: 8px; padding: 26px 20px; }
.public-content { max-width: 1100px; margin: 0 auto; padding: 45px 28px 80px; background: #fff; overflow-wrap: anywhere; }
.public-content h1, .public-content h2, .public-content h3 { line-height: 1.35; margin-top: 32px; }
.content-page { background: white; }
@media (max-width: 767px) {
    .contact { text-align: center; }
    .header-main { flex-direction: column; gap: 12px; padding: 12px 16px 20px; }
    .brand img { height: 80px; width: 150px; }
    .brand-cw .brand img { width: min(280px, 80vw); height: auto; }
    nav { justify-content: center; gap: 10px 20px; }
    nav a { font-size: 13px; }
    .login-background { padding: 35px 16px 60px; background-size: 90%; }
    .login-panel { left: 0; padding: 0 8px 20px; }
    .login-panel input { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    #bg-video { display: none; }
    #login-status[data-state="pending"]::before { animation: none; }
}
