html.mc-auth-open { overflow: hidden; scrollbar-gutter: stable; }
.mc-auth-dialog { margin: auto; padding: 0; width: min(480px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); border: 1px solid var(--border); border-radius: 22px; background: var(--card); color: var(--text); box-shadow: 0 24px 80px rgba(15,23,42,.24); overflow-y: auto; overscroll-behavior: contain; }
.mc-auth-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(4px); }
.mc-auth-dialog[open] { animation: mc-auth-enter .18s ease-out; }
.mc-auth-shell { position: relative; padding: 32px; }
.mc-auth-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.mc-auth-close:hover { background: var(--glass); color: var(--red); }
.mc-auth-brand { text-align: center; font-size: 1.4rem; font-weight: 900; margin: 12px 16px 20px; }
.mc-auth-brand p { margin: 8px 0 0; font-size: .78rem; font-weight: 400; color: var(--muted); }
.auth-brand-logo { display: block; max-width: min(240px, 100%); max-height: 64px; width: auto; height: auto; object-fit: contain; margin: auto; }
.mc-auth-dialog h2 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; text-align: center; }
.mc-auth-description { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.mc-auth-tabs { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--glass); margin-bottom: 20px; }
.mc-auth-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.mc-auth-tabs [aria-selected="true"] { background: var(--red); color: var(--white); box-shadow: 0 2px 6px rgba(29,78,216,.15); }
.mc-auth-subhead { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; text-align: center; }
.mc-auth-aux { text-align: center; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.mc-auth-link { border: 0; background: transparent; color: var(--red); font: inherit; font-size: .85rem; font-weight: 700; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.mc-auth-link:hover { text-decoration: none; }
.mc-auth-password { position: relative; }
.mc-auth-password input { padding-inline-end: 52px; }
.mc-auth-eye { position: absolute; top: 0; inset-inline-end: 0; display: grid; place-items: center; width: 46px; height: 46px; min-height: 46px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.mc-auth-eye:hover { color: var(--text); }
.mc-auth-code { letter-spacing: 8px; font-size: 1.35rem; font-weight: 700; text-align: center; }
.mc-auth-field { min-width: 0; margin-bottom: 16px; }
.mc-auth-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.mc-auth-field label span { color: var(--muted); font-weight: 400; }
.mc-auth-field input, .mc-auth-field select { min-width: 0; width: 100%; min-height: 46px; box-sizing: border-box; font-size: 16px; }
.mc-auth-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.mc-auth-submit { width: 100%; min-height: 48px; justify-content: center; margin-top: 4px; }
.mc-auth-dialog :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.mc-auth-dialog [aria-invalid="true"] { border-color: #b91c1c; }
.mc-auth-field-error { color: #b91c1c; font-size: .8rem; line-height: 1.4; margin: 6px 0 0; }
.mc-auth-message { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: var(--glass); font-size: .9rem; line-height: 1.5; }
.mc-auth-message[data-error="true"] { background: #fef2f2; color: #991b1b; }
.mc-auth-dialog [hidden] { display: none !important; }
.mc-auth-dialog button:disabled { opacity: .65; cursor: wait; }
@keyframes mc-auth-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 480px) { .mc-auth-shell { padding: 24px 20px; } .mc-auth-grid { grid-template-columns: minmax(0,1fr); gap: 0; } .mc-auth-dialog { max-height: calc(100dvh - 24px); width: calc(100% - 24px); } }
@media(prefers-reduced-motion: reduce) { .mc-auth-dialog[open] { animation: none; } }
