.portal-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--soft) 70%, transparent), transparent 34rem),
        var(--bg);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

.login-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: 72px;
    padding: 12px clamp(16px, 4vw, 48px);
    background: #101b29;
    color: #fff;
}

.login-brand {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.04em;
}

.login-brand span {color: #fff}
.login-brand-mark {
    width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain;
}

.login-language {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #c4d6e4;
    font-size: 13px;
}

.login-language select {
    min-height: 44px;
    padding: 7px 34px 7px 10px;
    border: 1px solid var(--input);
    border-radius: 8px;
    background: #fff;
    color: #17202b;
}

.login-card {
    width: min(100%, 620px);
    align-self: center;
    justify-self: center;
    margin: clamp(28px, 7vh, 72px) 16px 34px;
    padding: clamp(22px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 24px 70px color-mix(in srgb, #071728 14%, transparent);
}

.login-card-logo {
    display: grid; place-items: center;
    width: min(100%, 240px); margin: -8px auto 22px;
    padding: 8px; border-radius: 16px;
    background: color-mix(in srgb, #fff 94%, var(--soft));
}

.login-card-logo img {display: block; width: 100%; height: auto}

.login-card-heading h1 {
    font-size: clamp(26px, 4.5vw, 30px);
    letter-spacing: -.028em;
    line-height: 1.16;
    font-weight: 600;
}

.login-card-heading p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}

.login-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0 18px;
    padding: 13px 14px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--ink);
    font-size: 14px;
}

.login-guidance span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.provider-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--input);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.provider-button:hover {background: var(--soft)}
.provider-logo {
    flex: 0 0 28px; width: 28px; height: 28px;
    border-radius: 50%; object-fit: cover; background: #fff;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.login-field {
    display: grid;
    gap: 7px;
    margin-top: 15px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--input);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
}

.password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.password-toggle {
    min-width: 66px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--input);
    border-radius: 8px;
    background: var(--surface);
    color: var(--blue);
    font-weight: 600;
}

.login-field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    padding: 11px 16px;
    border: 1px solid #0765a6;
    border-radius: 9px;
    background: #0765a6;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.login-submit:disabled,
.provider-button:disabled {opacity: .62; cursor: wait}

.login-status {
    margin-top: 14px;
    min-height: 0;
    color: var(--muted);
    font-size: 14px;
}

.login-status:not(:empty) {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}

.login-status[data-kind="error"] {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
}

.login-disclosure {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.login-disclosure summary {
    min-height: 44px;
    padding: 10px 0;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
}

.login-disclosure-content {
    color: var(--muted);
    font-size: 14px;
}

.login-disclosure-content p {margin: 4px 0 10px}
.login-secondary-links,
.store-links {display: flex; flex-wrap: wrap; gap: 10px}
.login-secondary-links a,
.store-links a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--blue); font-weight: 600;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 18px clamp(16px, 4vw, 48px) 24px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 620px) {
    .login-brand-row {min-height: 64px; padding: 10px 12px}
    .login-card {margin: 20px 10px 24px}
    .login-card-logo {width: 210px; margin-top: -2px}
    .login-language span {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}
    .login-card {border-radius: 14px; box-shadow: none}
    .provider-grid {grid-template-columns: 1fr}
    .login-footer {display: grid}
}

@media (max-width: 360px) {
    .login-card {padding: 18px 16px}
    .provider-button {padding-inline: 9px; font-size: 13px}
    .password-toggle {min-width: 58px; padding-inline: 8px}
}
