/* Auth owns its layout so legacy game artwork rules cannot position the form. */
body.product-ui.auth-screen { background: #f7f9f8; }
body.product-ui.auth-screen .app-shell { margin-left: 0; background: #f7f9f8; }
body.product-ui.auth-screen .topbar { position: static; height: auto; min-height: 72px; padding: 14px max(20px, calc((100vw - 1120px) / 2)); background: #fff; }
body.product-ui.auth-screen .brand.compact span { display: inline; font-size: 18px; }
body.product-ui.auth-screen .brand.compact { display: flex; }
body.product-ui.auth-screen .brand img { width: 32px; height: 32px; }
body.product-ui.auth-screen .top-actions .button { min-height: 44px; padding: 10px 16px; }
body.product-ui.auth-screen main { display: grid; align-content: center; max-width: 1120px; padding: 40px 20px; }
body.product-ui.auth-screen .auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'form' 'visual'; gap: 0; width: 100%; max-width: 520px; margin: 0 auto; border: 1px solid #e0e7e4; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(23, 49, 42, .04); overflow: hidden; }
body.product-ui.auth-screen .auth-card { grid-area: form; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 28px !important; border: 0; border-radius: 0; background: #fff; box-shadow: none; overflow: visible; }
body.product-ui.auth-screen .auth-heading { margin: 0 0 10px; }
body.product-ui.auth-screen .auth-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; overflow-wrap: anywhere; }
body.product-ui.auth-screen .auth-help { margin: 0 0 22px; font-size: 14px; line-height: 1.55; }
body.product-ui.auth-screen .auth-card form { display: grid; gap: 16px; }
body.product-ui.auth-screen .auth-card form > label:not(.check),
body.product-ui.auth-screen .auth-optional-fields > label { display: grid; gap: 7px; min-width: 0; margin: 0 !important; font-size: 14px; font-weight: 600; line-height: 1.4; }
body.product-ui.auth-screen .auth-card input:not([type='checkbox']):not([type='hidden']) { width: 100%; height: 50px; margin: 0; padding: 12px 14px; border: 1px solid #d7e0dc; border-radius: 11px; background: #fff; color: #183a30; font-size: 16px; line-height: 1.4; box-shadow: none; }
body.product-ui.auth-screen .password-control { position: relative; display: block; width: 100%; min-width: 0; }
body.product-ui.auth-screen .password-control input { padding-right: 56px !important; }
body.product-ui.auth-screen .password-toggle { top: 50%; right: 4px; width: 44px; height: 44px; min-height: 44px; padding: 11px; background: transparent !important; transform: translateY(-50%) !important; transition: none; box-shadow: none; }
body.product-ui.auth-screen .password-eye { display: grid; place-items: center; width: 22px; height: 22px; }
body.product-ui.auth-screen .password-eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.product-ui.auth-screen .password-eye-closed,
body.product-ui.auth-screen .password-toggle.is-visible .password-eye-open { display: none; }
body.product-ui.auth-screen .password-toggle.is-visible .password-eye-closed { display: grid; }
body.product-ui.auth-screen .password-toggle { position: absolute; color: #60736b; }
body.product-ui.auth-screen .field-error { margin: 0; color: #a2423a; font-size: 12px; font-weight: 600; }
body.product-ui.auth-screen .has-error input,
body.product-ui.auth-screen input[aria-invalid='true'] { border-color: #c57067 !important; }
body.product-ui.auth-screen :where(a, button, input, summary, select):focus-visible { outline: 3px solid #74b7aa; outline-offset: 3px; }
body.product-ui.auth-screen button, body.product-ui.auth-screen .button { background: var(--brand); box-shadow: none; font-weight: 650; transition: background .15s ease; }
body.product-ui.auth-screen button:hover:not(:disabled), body.product-ui.auth-screen .button:hover { background: var(--brand-dark); }
body.product-ui.auth-screen .button.secondary { background: #fff; color: var(--ink); }
body.product-ui.auth-screen .auth-submit { min-height: 50px; margin: 4px 0 0; padding: 12px 20px; border-radius: 11px; font-size: 15px; background: var(--brand); }
body.product-ui.auth-screen .auth-submit.is-loading { padding: 12px 20px; }
body.product-ui.auth-screen .auth-submit.is-loading::after { content: ''; position: absolute; right: 18px; width: 14px; height: 14px; margin: 0; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: auth-spin .8s linear infinite; }
body.product-ui.auth-screen .auth-submit .button-icon { display: none; }
body.product-ui.auth-screen .auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 14px 0 0; padding: 0; }
body.product-ui.auth-screen .auth-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-dark); font-size: 14px; font-weight: 600; }
body.product-ui.auth-screen .auth-card .check { grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; min-height: 32px; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.5; }
body.product-ui.auth-screen .auth-card .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
body.product-ui.auth-screen .auth-legal-links { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; font-size: 12px; }
body.product-ui.auth-screen .auth-optional-fields { margin: 0; padding: 0; border-top: 1px solid #e8eeeb; border-bottom: 0; }
body.product-ui.auth-screen .auth-optional-fields summary { display: list-item; min-height: 44px; padding: 12px 0; font-size: 13px; }
body.product-ui.auth-screen .auth-optional-fields > label { margin: 4px 0 14px !important; }
body.product-ui.auth-screen .auth-trust-note { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #edf1ef; font-size: 12px; line-height: 1.6; }
body.product-ui.auth-screen .auth-trust-note strong { font-weight: 650; color: #3b5a4f; }
body.product-ui.auth-screen .auth-visual { grid-area: visual; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; min-width: 0; padding: 18px 24px; position: static; border-top: 1px solid #e3eae6; background: #f1f6f3; overflow: hidden; }
body.product-ui.auth-screen .auth-art-frame { position: relative; width: 100%; min-width: 0; aspect-ratio: 1; }
body.product-ui.auth-screen .auth-art-frame::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: #e3ebe7; }
body.product-ui.auth-screen .auth-art-frame.is-loaded::before,
body.product-ui.auth-screen .auth-art-frame.is-failed { display: none; }
body.product-ui.auth-screen .auth-art-frame img { display: block; position: static; width: 100%; max-width: none; height: auto; aspect-ratio: 1; margin: 0; padding: 0; object-fit: contain; opacity: 1; animation: none !important; transform: none !important; filter: none; mix-blend-mode: normal; border-radius: 0; box-shadow: none; }
body.product-ui.auth-screen .responsive-picture { display: contents; }
body.product-ui.auth-screen .auth-brand-caption { display: block; margin-bottom: 8px; color: #56766a; font-size: 11px; font-weight: 650; letter-spacing: .1em; }
body.product-ui.auth-screen .auth-visual h2 { margin: 0 0 8px; color: var(--ink); font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
body.product-ui.auth-screen .auth-visual p { margin: 0; max-width: 35ch; color: #546c61; font-size: 13px; line-height: 1.6; }
body.product-ui.auth-screen .auth-visual.is-failed { grid-template-columns: 1fr; }
body.product-ui.auth-screen .auth-route-register .auth-visual { background: #f0f5f7; }
body.product-ui.auth-screen .auth-route-register .auth-visual p { color: #536872; }
body.product-ui.auth-screen .auth-action-status { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e6d8ad; border-radius: 10px; background: #fffbef; color: #725b20; font-size: 13px; }
body.product-ui.auth-screen .auth-form-error { display: grid; gap: 4px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #efcdc7; border-radius: 10px; background: #fff7f5; color: #823f36; font-size: 13px; }
body.product-ui.auth-screen .auth-status-card { display: grid; gap: 8px; margin: 0 0 18px; padding: 16px; border: 1px solid #bbdfcf; border-radius: 12px; background: #f4fbf7; font-size: 13px; line-height: 1.5; }
body.product-ui.auth-screen .auth-status-card p { margin: 0; font-size: 13px; }
body.product-ui.auth-screen .auth-status-card.is-error { border-color: #efcdc7; background: #fff7f5; }
body.product-ui.auth-screen .auth-steps { display: flex; gap: 12px; margin: 0 0 20px; font-size: 12px; color: var(--muted); }
body.product-ui.auth-screen .auth-steps span { display: inline-flex; align-items: center; gap: 6px; }
body.product-ui.auth-screen .auth-steps b { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #d9e6df; border-radius: 50%; }
body.product-ui.auth-screen .auth-steps .is-active { color: var(--brand-dark); }
body.product-ui.auth-screen [hidden] { display: none !important; }
body.product-ui.auth-screen .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.product-ui.auth-screen .skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--brand-dark); transform: translateY(-160%); }
body.product-ui.auth-screen .skip-link:focus { transform: none; }
body.product-ui.auth-screen .site-footer { padding: 24px 20px 28px; background: #f7f9f8; }
body.product-ui.auth-screen .site-footer { border-top: 1px solid #e0e7e4; }
body.product-ui.auth-screen .site-footer-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 1120px; width: 100%; margin: 0 auto; color: #62796e; font-size: 12px; }
body.product-ui.auth-screen .site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
body.product-ui.auth-screen .site-footer-links a { color: #546b60; }
body.product-ui.auth-screen .site-footer-language { margin: 0; }
body.product-ui.auth-screen .site-footer-language select { width: auto; max-width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; font-size: 12px; border-radius: 10px; background: #fff; }
body.product-ui.auth-screen .network-status { position: fixed; top: 12px; left: 50%; z-index: 80; max-width: calc(100vw - 32px); padding: 10px 14px; border: 1px solid #e6d8ad; border-radius: 12px; background: #fffbef; color: #725b20; font-size: 13px; line-height: 1.4; transform: translateX(-50%); }
body.product-ui.auth-screen .network-status.is-online { border-color: #bbdfcf; background: #f4fbf7; color: #2d624a; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
    body.product-ui.auth-screen .auth-wrap:is(.auth-route-login, .auth-route-register) { max-width: 1040px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: 'visual form'; }
    body.product-ui.auth-screen .auth-card { padding: 40px 44px !important; }
    body.product-ui.auth-screen .auth-visual { grid-template-columns: 1fr; align-content: center; justify-items: center; gap: 24px; padding: 36px; border: 0; }
    body.product-ui.auth-screen .auth-art-frame { max-width: 410px; }
    body.product-ui.auth-screen .auth-route-login .auth-art-frame { max-width: 320px; }
    body.product-ui.auth-screen .auth-visual-copy { width: 100%; max-width: 350px; }
    body.product-ui.auth-screen .auth-visual h2 { font-size: 28px; }
    body.product-ui.auth-screen .auth-visual p { font-size: 14px; }
    body.product-ui.auth-screen .auth-route-register .auth-card { padding-top: 32px !important; padding-bottom: 32px !important; }
}
@media (max-width: 480px) {
    body.product-ui.auth-screen .topbar { min-height: 64px; padding: 10px 16px; gap: 12px; }
    body.product-ui.auth-screen .brand.compact span { display: none; }
    body.product-ui.auth-screen .top-actions { gap: 6px; }
    body.product-ui.auth-screen .top-actions .button { padding: 10px 12px; font-size: 12px; }
    body.product-ui.auth-screen main { padding: 20px 16px 28px; }
    body.product-ui.auth-screen .auth-wrap { border-radius: 18px; }
    body.product-ui.auth-screen .auth-card { padding: 24px 20px !important; }
    body.product-ui.auth-screen .auth-visual { grid-template-columns: 92px minmax(0, 1fr); padding: 18px 20px; gap: 12px; }
    body.product-ui.auth-screen .auth-visual h2 { font-size: 17px; }
    body.product-ui.auth-screen .auth-brand-caption { display: none; }
    body.product-ui.auth-screen .auth-visual p { font-size: 12px; }
    body.product-ui.auth-screen .site-footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    body.product-ui.auth-screen .site-footer-links { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    body.auth-screen *, body.auth-screen *::before, body.auth-screen *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
