/* Login follows the shared MIA website/Agent Geist direction; workspace type is unchanged. */
@font-face { font-family: Geist; src: url('/console/assets/fonts/geist-variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--brand-paper); color: var(--brand-ink); font: 15px/1.5 Geist, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.auth-frame { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-height: 100dvh; }
.auth-form-side { display: flex; flex-direction: column; padding: 40px clamp(40px, 5vw, 80px); }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; border-radius: 6px; }
.brand img { display: block; }
.login-content { display: flex; flex-direction: column; justify-content: center; flex: 1; width: 100%; max-width: 400px; padding: 64px 0; }
footer { font-size: 12px; }
h1 { margin: 0; font-size: clamp(32px, 3.15vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.16; }
p { margin: 16px 0; }
h1 { margin-bottom: 40px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
button, input { font: inherit; border-radius: 12px; min-height: 52px; width: 100%; }
button { padding: 10px 14px; color: var(--brand-ink); background: var(--brand-surface); border: 1px solid var(--brand-line-strong); font-weight: 500; cursor: pointer; }
button:hover { background: var(--brand-hover); }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
#providers { display: grid; gap: 10px; }
#providers button { display: flex; align-items: center; gap: 14px; padding: 0 18px; text-align: left; border-color: var(--brand-line); }
#providers button:hover { border-color: var(--brand-accent); }
.provider-label { flex: 1; }
.provider-arrow { opacity: .25; }
#providers button:hover .provider-arrow { opacity: .7; }
.email-field { display: flex; align-items: center; gap: 13px; border: 1px solid var(--brand-line); border-radius: 12px; background: var(--brand-surface); padding: 0 6px 0 18px; }
.email-field > svg { flex-shrink: 0; color: var(--brand-muted); }
.email-field input { min-width: 0; margin: 0; padding: 12px 0; border: 0; background: transparent; }
.email-field input:focus-visible { outline: 0; }
.email-field:focus-within { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgb(217 55 142 / 10%); }
.email-field .email-submit { min-height: 36px; height: 36px; width: 36px; flex-shrink: 0; padding: 0; color: var(--brand-surface); background: var(--brand-ink); border-color: var(--brand-ink); border-radius: 8px; }
.email-field:has(input:invalid) .email-submit { visibility: hidden; }
label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
input { display: block; padding: 10px 12px; color: var(--brand-ink); background: var(--brand-surface); border: 1px solid var(--brand-line-strong); margin-bottom: 14px; }
.primary { background: var(--brand-ink); color: var(--brand-surface); border-color: var(--brand-ink); }
.primary:hover { background: var(--brand-muted); }
.divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--brand-muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--brand-line); }
#status, #code-hint, #notice { font-size: 13px; color: var(--brand-muted); }
#error { font-size: 13px; border-left: 3px solid var(--brand-accent); padding-left: 12px; }
#retry { margin-bottom: 18px; }
.code-actions { display: flex; gap: 16px; margin-top: 8px; }
.code-actions button { width: auto; padding: 8px 0; border: 0; background: transparent; font-size: 13px; text-decoration: underline; }
.back { display: inline-block; color: var(--brand-muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Platform's AuthShell/AuthArtwork coordinates; the artwork bundle is generated from its owner. */
.auth-artwork { position: sticky; top: 0; display: grid; place-items: center; height: 100dvh; overflow: hidden; contain: layout paint; --art-scale: .7; --font-auth-sans: Geist, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; --background: var(--brand-paper); --pink: var(--brand-pink); }
.auth-art-stage { position: relative; width: 720px; height: 900px; overflow: hidden; zoom: var(--art-scale); }
.auth-art-backdrop { position: absolute; left: -40px; right: -40px; top: 330px; height: 410px; background: radial-gradient(circle, var(--brand-pink) 1.8px, transparent 2.5px) 0 0 / 21px 21px; mask-image: radial-gradient(ellipse, #000 12%, transparent 70%); opacity: .35; transform: rotate(-8deg); }
.auth-art-wind { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art-motion { position: absolute; inset: 0; }
.enhanced .auth-art-static { visibility: hidden; }
.art-heading { position: absolute; left: 50px; right: 48px; top: 61px; }
.art-eyebrow { display: flex; gap: 14px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--brand-accent); margin: 0 0 20px; }
.art-eyebrow span:empty { width: 30px; height: 1px; background: var(--brand-pink); }
.art-title { display: flex; gap: 20px; align-items: center; font-size: 64px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.art-title img { width: 108px; height: auto; }
.art-subtitle { font-size: 23px; line-height: 1.4; margin-top: 17px; color: #514b5a; letter-spacing: -.025em; }
@media (max-width: 900px) { .auth-frame { grid-template-columns: 1fr; } .auth-artwork { display: none; } .auth-form-side { padding: 28px 32px; } .login-content { align-self: center; } }
@media (max-width: 480px) { .auth-form-side { padding: 24px; } .brand img { width: 72px; height: auto; } .login-content { padding: 48px 0; } }
@media (prefers-reduced-motion: reduce) { .auth-art-mount { display: none; } .enhanced .auth-art-static { visibility: visible; } }

.auth-artwork :is(p, h1, h2, h3, figure) { margin: 0; }
.auth-artwork :is(img, svg) { display: block; }
.auth-artwork .art-eyebrow { margin-bottom: 20px; }
.auth-artwork .art-subtitle { margin-top: 17px; }

.language-picker { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 10px; border-radius: 8px; color: var(--brand-muted); font-size: 12px; font-weight: 400; }
.language-picker:hover { background: var(--brand-hover); }
.language-picker:focus-within { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.language-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
