.public-auth-page {
    --auth-blue: #2563eb;
    margin: 0;
    background: #f5f7fa;
    color: #172334;
    font: 16px/1.55 "Segoe UI", Arial, sans-serif;
}
.public-auth-page *, .public-auth-page *::before, .public-auth-page *::after { box-sizing: border-box; }
.public-auth-page a { color: #1d4ed8; text-underline-offset: 3px; }
.public-auth-page a:hover { text-decoration: none; }
.public-auth-page :is(a, button, input):focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.public-auth-header { width: min(100% - 40px, 1040px); margin: 22px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-auth-brand { display: block; width: 220px; max-width: 55%; line-height: 0; }
.public-auth-brand img { width: 100%; height: auto; }
.public-auth-back { font-size: 14px; text-decoration: none; white-space: nowrap; }
.public-auth-back span { margin-right: 5px; }
.public-auth-main { width: min(100% - 32px, 540px); margin: 28px auto 0; }
.public-auth-card { padding: 28px 32px; background: #fff; border: 1px solid #d6e2f4; border-radius: 16px; box-shadow: 0 10px 28px #142c4b0a; }
.public-auth-card h1 { margin: 0 0 10px; font-size: clamp(25px, 5.8vw, 30px); line-height: 1.2; letter-spacing: -.45px; }
.public-auth-card .guest-account-transfer-control { margin-top: 12px; text-align: right; }
.public-auth-card .guest-account-cancel { padding: 4px 0; border: 0; background: transparent; color: #52657f; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.public-auth-card .guest-account-notice { margin-bottom: 16px; padding: 10px 12px; border: 1px solid #bdcde3; border-radius: 8px; background: #f7faff; font-size: 14px; }
.public-auth-card .guest-account-notice p { margin: 0 0 6px; }
.public-auth-intro { margin: 0 0 10px; }
.public-auth-steps { margin: 0 0 20px; color: #52657f; font-size: 14px; }
.public-auth-form { display: grid; grid-template-columns: minmax(0, 1fr); }
.public-auth-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.public-auth-form label { font-size: 14px; font-weight: 600; }
.public-auth-form input:not([type="hidden"]) { width: 100%; min-width: 0; min-height: 45px; margin: 5px 0 13px; padding: 10px 12px; border: 1px solid #bdcde3; border-radius: 8px; background: #f7faff; color: #172334; font: inherit; }
.public-auth-form input::placeholder { color: #65758b; }
.public-auth-password-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; }
.public-auth-password-label small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #52657f; }
.public-auth-password-label svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.public-auth-note { margin: 1px 0 16px; color: #52657f; font-size: 13px; }
.public-auth-rules { margin: 0 0 16px; padding-top: 14px; border-top: 1px solid #dce5f1; font-size: 13px; color: #52657f; }
.public-auth-challenge { min-width: 0; margin-bottom: 14px; }
.public-auth-challenge:empty { display: none; }
.public-auth-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 16px; border: 1px solid var(--auth-blue); border-radius: 8px; background: var(--auth-blue); color: #fff !important; font: 600 16px/1.4 "Segoe UI", Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.public-auth-submit:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
.public-auth-submit:disabled { border-color: #c8d2e0; background: #e1e7ef; color: #53647c !important; cursor: not-allowed; }
.public-auth-switch { margin: 18px 0 0; text-align: center; font-size: 14px; }
.public-auth-message { padding: 11px 13px; margin: 0 0 18px; border: 1px solid #bed0ed; border-radius: 8px; background: #eff5ff; font-size: 14px; overflow-wrap: anywhere; }
.public-auth-error { background: #fff4f4; border-color: #e9b7b7; color: #9d2020; }
.public-auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 22px 20px 28px; font-size: 12px; }
.public-auth-footer a { color: #52657f; }
@media (max-width: 420px) {
    .public-auth-header { width: calc(100% - 32px); margin-top: 18px; gap: 12px; }
    .public-auth-brand { width: 170px; }
    .public-auth-back { font-size: 12px; }
    .public-auth-main { margin-top: 22px; }
    .public-auth-card { padding: 23px 20px; }
}
@media (max-width: 380px) {
    .public-auth-main { width: calc(100% - 16px); }
    .public-auth-card { padding-inline: 14px; }
    .public-auth-challenge { margin-inline: -14px; }
}
@media (prefers-reduced-motion: no-preference) {
    .public-auth-submit { transition: background-color .15s, border-color .15s; }
}
