.login_page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 32px 16px;
    background: var(--theme-page);
}
.login_brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    color: var(--theme-ink);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.login_brand img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    padding: 5px;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    object-fit: contain;
}
.login_card {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid var(--theme-border);
    border-top: 3px solid var(--theme-primary);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}
.login_heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.login_icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--theme-radius);
    background: var(--theme-primary-soft);
    color: var(--theme-primary);
    font-size: 20px;
}
.login_heading p { margin: 0 0 4px; color: var(--theme-muted); font-size: 11px; font-weight: 700; }
.login_heading h1 { margin: 0; font-size: 26px; line-height: 1.15; }
.login_field { margin-bottom: 18px; }
.login_field label { display: block; margin-bottom: 8px; color: var(--theme-label); font-size: 14px; font-weight: 600; }
.login_field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--theme-input-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    color: var(--theme-ink);
    font: inherit;
    font-size: 14px;
}
.login_field input::placeholder { color: var(--theme-placeholder); }
.login_field input:focus { outline: none; border-color: var(--theme-primary); box-shadow: var(--theme-focus-ring); }
.password_field { position: relative; }
.password_field input { padding-right: 48px; }
.password_toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--theme-radius);
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
}
.password_toggle:hover { background: var(--theme-page); color: var(--theme-ink); }
.captcha_frame { max-width: 100%; overflow-x: auto; }
#invalid { margin: 12px 0; color: var(--theme-primary); font-size: 13px; line-height: 1.5; }
#invalid:empty { margin: 0; }
.login_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: var(--theme-radius);
    background: var(--theme-primary);
    color: var(--theme-on-dark);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease;
}
.login_submit:hover { background: var(--theme-primary-dark); }
.login_submit:disabled { cursor: wait; }
.login_submit[aria-busy="true"] { background: var(--theme-primary); }
.login_submit [hidden] { display: none !important; }
.login_spinner { flex: 0 0 16px; width: 16px; height: 16px; border: 2px solid var(--theme-primary-border); border-top-color: var(--theme-on-dark); border-radius: 50%; animation: login-spin 750ms linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login_spinner { animation: none; } }
.login_back { display: inline-flex; align-items: center; gap: 8px; color: var(--theme-muted); font-size: 13px; text-decoration: none; }
.login_back:hover { color: var(--theme-primary); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 4px; }
@media (max-width: 380px) {
    .login_page { padding: 24px 12px; }
    .login_card { padding: 20px 12px; }
    .login_brand { font-size: 17px; }
}
