:root {
    color-scheme: light;
    color: #172438;
    background-color: #fff;
    font: 15px/1.45 system-ui, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background-color: #fff;
}

.login-panel {
    width: min(100%, 404px);
    padding: clamp(22px, 6vw, 36px);
    border: 1px solid #dbe3ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 9px 30px #19334f0d;
}

.login-panel h1 { margin: 0 0 22px; font-size: 25px; font-weight: 700; line-height: 1.25; }
.login-panel form { display: grid; gap: 14px; }
.login-field { display: grid; gap: 5px; }
.login-field label { font-size: 14px; font-weight: 600; }

.login-panel input, .login-panel button { font: inherit; }

.login-panel input:not([type="hidden"]) {
    min-width: 0;
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid #aab9cb;
    border-radius: 6px;
    background-color: #fff;
    color: #172438;
}

.login-panel input::placeholder { color: #65778d; }
.login-panel :is(input, button, summary):focus-visible { outline: 2px solid #235d9b; outline-offset: 2px; }
.login-captcha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }

.login-captcha-refresh {
    width: 118px;
    min-height: 43px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #aab9cb;
    border-radius: 6px;
    background: #f6f8fb;
    color: #285482;
    cursor: pointer;
    overflow: hidden;
}

.login-captcha-refresh img { display: block; width: 116px; height: 40px; }
.login-captcha-refresh span { font-size: 12px; }

.login-factor summary { cursor: pointer; color: #4d5f73; font-size: 13px; }
.login-factor input { margin-top: 7px; }

.login-submit {
    min-height: 44px;
    width: 100%;
    background: #214f82;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 650;
    cursor: pointer;
}

.login-submit:hover:not(:disabled) { background: #173f6b; }
.login-panel button:disabled { opacity: .58; cursor: default; }
.login-feedback { margin: 0; color: #9a2634; font-size: 13px; }
.login-feedback:empty { display: none; }
