:root {
    color-scheme: light;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: #142842;
    background: #f6f8fc;
    font-synthesis: none;
    --navy: #0e2647;
    --blue: #154e85;
    --muted: #53667c;
    --line: #cfdae7;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-layout {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(320px, 43fr) minmax(440px, 57fr);
}

.login-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 42px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(38px, 5vw, 82px);
    background: radial-gradient(ellipse at 92% 77%, #224a76 0%, transparent 57%), var(--navy);
    color: #fff;
}

.login-brand::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image: linear-gradient(#9fc4ee10 1px, transparent 1px), linear-gradient(90deg, #9fc4ee10 1px, transparent 1px);
    background-size: 40px 40px;
}

.login-logo {
    display: grid;
    width: 146px;
    height: 76px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
}

.login-logo img {
    display: block;
    width: 128px;
    height: 64px;
    object-fit: contain;
}

.login-brand-copy {
    padding-bottom: clamp(90px, 16vh, 172px);
}

.login-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .16em;
}

.login-kicker > span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #a7e5db;
}

.login-brand-copy .login-kicker { color: #d1e7f7; }

.login-brand h2 {
    margin: 20px 0 16px;
    font-size: clamp(2.45rem, 4.2vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.login-brand-copy > p:last-child {
    max-width: 320px;
    margin: 0;
    color: #c6daed;
    font-size: 1rem;
    line-height: 1.65;
}

.login-blueprint {
    position: absolute;
    z-index: -1;
    right: -6%;
    bottom: 5%;
    width: min(93%, 570px);
    opacity: .64;
}

.login-brand-foot {
    color: #c3d9ef;
    font-size: .68rem;
    letter-spacing: .14em;
    line-height: 1.5;
}

.login-main {
    display: grid;
    place-items: center;
    padding: 52px clamp(26px, 6vw, 96px);
    background: linear-gradient(145deg, #fff 25%, #f3f7fc);
}

.login-panel { width: min(100%, 410px); }
.login-panel-kicker { color: var(--blue); }
.login-panel-kicker > span { background: #21887a; }

.login-panel h1 {
    margin: 14px 0 9px;
    font-size: clamp(2.2rem, 4.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.login-intro {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 1.04rem;
}

.login-form { display: grid; gap: 19px; }

.login-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 650;
    font-size: .9rem;
}

.login-field input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: #142842;
    font-size: 1rem;
}

.login-password { position: relative; }
.login-password input { padding-right: 78px; }

.login-password-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    padding: 0 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--blue);
    font-size: .84rem;
    font-weight: 700;
}

.login-password-toggle:hover { background: #eaf2fa; }

.login-field input:focus-visible, button:focus-visible {
    outline: 3px solid #397ab5;
    outline-offset: 2px;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin-top: 4px;
    padding: 12px 17px;
    border: 0;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.login-submit:hover:not(:disabled) { background: #103e6b; }
.login-submit:disabled { background: #607489; cursor: default; }

.login-support {
    margin: 28px 0 0;
    padding-top: 19px;
    border-top: 1px solid #dce5ee;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid #f0c5cb;
    border-radius: 9px;
    background: #fff5f5;
    color: #851f2d;
    font-size: .875rem;
}

.login-alert > span {
    display: grid;
    flex: 0 0 22px;
    height: 22px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 750;
}

.login-alert p { margin: 4px 0 0; line-height: 1.45; }
.login-captcha { min-height: 78px; }

@media (max-width: 780px) {
    .login-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .login-brand {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding: 20px 24px;
    }
    .login-logo { width: 105px; height: 54px; flex-shrink: 0; border-radius: 8px; }
    .login-logo img { width: 92px; height: 46px; }
    .login-brand-copy, .login-blueprint { display: none; }
    .login-brand-foot { max-width: 168px; }
    .login-main { align-items: start; padding: 43px 24px; }
}

@media (max-width: 370px) {
    .login-main { padding-inline: 18px; }
    .login-captcha { min-height: 68px; overflow: hidden; }
    .login-captcha .g-recaptcha { transform: scale(.88); transform-origin: top left; }
}
