:root {
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #102847;
    background: #edf3fa;
    color-scheme: light;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px;
}
.login-shell {
    display: grid;
    grid-template-columns: .95fr 1fr;
    width: min(100%, 1024px);
    min-height: 620px;
    overflow: hidden;
    background: white;
    border: 1px solid #dce7f2;
    border-radius: 28px;
    box-shadow: 0 24px 72px #10284720;
}
.brand-panel {
    display: grid;
    align-items: end;
    padding: clamp(32px, 5vw, 66px);
    color: white;
    background:
        repeating-radial-gradient(circle at 100% 12%, transparent 0 31px, #ffffff22 32px 33px, transparent 34px 54px),
        radial-gradient(ellipse at top right, #007ca6, transparent 64%),
        linear-gradient(150deg, #103965, #071e37 72%);
}
.brand-content h2 {
    margin: 0 0 16px;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -.055em;
}
.brand-content p {
    margin: 0;
    max-width: 27ch;
    color: #d6e9fa;
    line-height: 1.65;
}
.login-panel {
    display: grid;
    place-items: center;
    padding: 45px clamp(28px, 5vw, 74px);
}
.login-content { width: min(100%, 350px); }
.login-logo {
    display: block;
    width: 174px;
    max-width: 100%;
    height: auto;
    margin: 0 0 24px -4px;
}
h1 {
    margin: 0;
    font-size: 2.25rem;
    letter-spacing: -.045em;
}
.intro { color: #495d74; margin: 8px 0 26px; }
.login-field { margin-bottom: 18px; }
.login-field label {
    display: block;
    margin-bottom: 7px;
    font-size: .9rem;
    font-weight: 650;
}
input, button { font: inherit; }
.login-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #91a6bd;
    border-radius: 10px;
    color: inherit;
    background: #fbfdff;
}
.password-field { position: relative; }
.password-field.is-enhanced input { padding-right: 75px; }
#password-toggle {
    position: absolute;
    inset: 4px 5px 4px auto;
    padding: 0 11px;
    color: #095487;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-weight: 650;
    cursor: pointer;
}
#password-toggle:hover { background: #e9f3fd; }
.login-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: #07538f;
    font-weight: 700;
    cursor: pointer;
}
.login-submit:hover { background: #073d6c; }
:focus-visible { outline: 3px solid #087ab7; outline-offset: 2px; }
.login-error {
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff1f1;
    color: #8b2432;
    font-size: .9rem;
}
footer { margin-top: 30px; color: #52677e; font-size: .79rem; }
@media (max-width: 720px) {
    body { padding: 20px; }
    .login-shell { grid-template-columns: 1fr; min-height: 0; max-width: 480px; border-radius: 20px; }
    .brand-panel { display: none; }
    .login-panel { padding: 36px clamp(20px, 7vw, 45px); }
}
