:root {
    color-scheme: dark;
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #f5f5f5;
    background: #141416;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.login-page {
    display: grid;
    grid-template-columns: 37% minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}
.login-visual {
    display: flex;
    align-items: center;
    padding: 64px 12.7%;
    background: #2c3b47 url("/static/admin/imgs/login/reference-backdrop.webp") center / cover no-repeat;
}
.login-intro { width: 100%; margin-top: -36px; }
.login-intro h2 { margin: 0; font-size: 46px; line-height: 1.48; font-weight: 400; letter-spacing: 0; }
.login-intro h2 span { font-size: 40px; }
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 40px;
    background: #141416;
}
.login-content { width: 466px; max-width: 100%; }
.login-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 68px;
}
.login-brand { font-size: 34px; line-height: 1.2; font-weight: 600; }
.login-brand-label { color: #19191b; background: #f4f4f5; padding: 2px 6px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.login-form { margin: 0; }
.login-field { position: relative; min-width: 0; margin-bottom: 28px; }
.login-field input {
    display: block;
    width: 100%;
    height: 66px;
    padding: 0 22px;
    color: #f0f1f2;
    border: 1px solid #303033;
    border-radius: 36px;
    background: #1c1c1e;
    font-size: 18px;
    line-height: normal;
    outline: none;
    transition: border-color .18s, background .18s;
}
.login-field input::placeholder { color: #85878c; opacity: 1; }
.login-field input:focus { border-color: #969ba5; background: #202023; }
.login-field input:-webkit-autofill { -webkit-text-fill-color: #f0f1f2; box-shadow: 0 0 0 1000px #1c1c1e inset; }
.password-field input { padding-right: 64px; }
.password-toggle {
    position: absolute;
    right: 13px;
    top: 11px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}
.password-toggle img { width: 20px; height: 20px; filter: invert(1); opacity: .8; }
.password-toggle:hover { background: #303033; }
.login-captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 14px; margin-bottom: 27px; }
.login-captcha-row .login-field { margin: 0; }
.captcha-refresh {
    align-self: center;
    width: 140px;
    height: 50px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #414145;
    border-radius: 6px;
    background: #fff;
}
.captcha-refresh img { display: block; width: 100%; height: 100%; object-fit: fill; }
.login-options { display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 23px; font-size: 15px; line-height: 24px; color: #9da0a6; cursor: pointer; }
.login-options input { width: 16px; height: 16px; margin: 0; accent-color: #e8ebef; }
.loginbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    padding: 0 20px;
    color: #27292c;
    background: #f6f7f9;
    border: 1px solid #d6d7da;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 400;
    transition: background .18s;
}
.loginbtn:hover { background: #dedfe3; }
.loginbtn.is-loading { cursor: wait; opacity: .8; }
.loginbtn.is-loading::after { content: ""; width: 16px; height: 16px; margin-left: 10px; border: 2px solid #b7bbc2; border-top-color: #383b42; border-radius: 50%; animation: spin .7s linear infinite; }
button:focus-visible, .login-options input:focus-visible { outline: 2px solid #b6c8e4; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 761px) and (max-height: 800px) {
    .login-panel { padding-block: 40px; }
    .login-heading { margin-bottom: 48px; }
    .login-field { margin-bottom: 22px; }
}
@media (max-width: 1100px) {
    .login-visual { padding-inline: 10%; }
    .login-intro h2 { font-size: 32px; }
    .login-intro h2 span { font-size: 29px; }
}
@media (max-width: 760px) {
    .login-page { grid-template-columns: minmax(0, 1fr); }
    .login-visual { display: none; }
    .login-panel { min-height: 100svh; padding: 48px 24px; }
    .login-heading { margin-bottom: 48px; }
    .login-brand { font-size: 29px; }
    .login-field { margin-bottom: 22px; }
    .login-field input { height: 60px; font-size: 16px; padding-left: 20px; }
    .password-toggle { top: 8px; }
    .login-captcha-row { grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; }
    .captcha-refresh { width: 118px; height: 46px; }
    .loginbtn { height: 56px; font-size: 17px; }
}
@media (max-width: 360px) {
    .login-panel { padding-inline: 18px; }
    .login-brand { font-size: 26px; }
    .login-field input { padding-left: 16px; font-size: 15px; }
    .login-captcha-row { grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
    .captcha-refresh { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
