/* Matches the dashboard's slate navigation, blue controls, and quiet card borders. */
.m2-auth { margin: 0; min-height: 100vh; background: #f9fafb; color: #111827; font: 14px/1.5 ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.m2-auth * { box-sizing: border-box; }
.m2-auth a { color: #2563eb; text-decoration: none; }
.m2-auth a:hover { text-decoration: underline; }
.m2-auth :focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.auth-header { height: 56px; display: flex; align-items: center; padding: 0 28px; background: #111827; }
.auth-brand { display: flex; align-items: center; gap: 20px; color: #fff !important; font-weight: 600; }
.auth-brand img { display: block; width: 144px; height: auto; }
.auth-brand span { border-left: 1px solid #374151; padding-left: 20px; color: #9ca3af; font-size: 12px; font-weight: 400; }
.auth-main { width: 100%; max-width: 496px; margin: 0 auto; padding: clamp(36px, 9vh, 100px) 20px 32px; }
.auth-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 36px; box-shadow: 0 4px 18px #11182705; }
.auth-logo { display: block; width: 46px; height: 46px; border-radius: 10px; margin-bottom: 24px; }
.auth-card h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.6px; font-weight: 600; margin: 0 0 9px; }
.auth-description { color: #6b7280; margin: 0 0 28px; }
.auth-card label { display: block; font-weight: 500; margin-bottom: 7px; }
.auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=search] { display: block; width: 100%; height: 43px; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; background: #fff; color: #111827; font: inherit; margin-bottom: 21px; }
.auth-card input:focus { border-color: #2563eb; }
.auth-password-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-password-label a { font-size: 12px; }
.auth-card .auth-remember { display: flex; align-items: center; gap: 8px; font-weight: 400; color: #4b5563; margin: 0 0 24px; }
.auth-remember input { width: 16px; height: 16px; accent-color: #2563eb; margin: 0; }
.auth-button { width: 100%; min-height: 43px; padding: 10px 16px; display: block; background: #2563eb; border: 1px solid #2563eb; border-radius: 6px; color: #fff !important; font: inherit; font-weight: 500; text-align: center; cursor: pointer; }
.auth-button:hover { background: #1d4ed8; text-decoration: none !important; }
.auth-message { border: 1px solid; border-radius: 6px; padding: 12px; margin: 0 0 24px; }
.auth-error { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.auth-notice { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }
.auth-help, .auth-back { text-align: center; font-size: 12px; color: #6b7280; margin: 24px 0 0; }
.auth-account { font-size: 12px; color: #6b7280; overflow-wrap: anywhere; margin: -12px 0 20px; }
.auth-sites { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth-sites a { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; color: #111827; }
.auth-sites a:hover { border-color: #93c5fd; background: #eff6ff; text-decoration: none; }
.auth-sites strong { font-weight: 500; overflow-wrap: anywhere; }
.auth-sites small { display: block; color: #6b7280; font-size: 12px; overflow-wrap: anywhere; margin-top: 3px; }
.auth-site-chooser { max-width: 720px; padding-top: clamp(32px, 5vh, 64px); }
.auth-site-chooser h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.auth-chooser-branding { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: #111827; margin: -36px -36px 28px; padding: 24px 36px; border-radius: 11px 11px 0 0; }
.auth-chooser-branding img { display: block; width: 200px; max-width: 100%; height: auto; }
.auth-admin-badge { border: 1px solid #475569; background: #1e293b; border-radius: 5px; padding: 5px 9px; color: #e2e8f0; font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.auth-empty { color: #6b7280; margin: 0; }
.auth-site-search { border-top: 1px solid #e5e7eb; margin-top: 28px; padding-top: 28px; }
.auth-search-controls { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-search-controls input[type=search] { min-width: 0; margin: 0; }
.auth-search-controls .auth-button { width: auto; flex-shrink: 0; }
.auth-pagination { display: flex; justify-content: flex-end; gap: 24px; margin-top: 20px; }
.auth-pagination[hidden], .auth-pagination button[hidden] { display: none; }
.auth-pagination button { border: 0; padding: 4px 0; background: none; color: #2563eb; font: inherit; cursor: pointer; }
.auth-pagination button:hover { text-decoration: underline; }
.auth-search-status { color: #6b7280; font-size: 12px; margin: 0 0 12px; }
.auth-search-status:empty { margin: 0; }
.auth-search-status.is-error { color: #991b1b; }
@media (max-width: 480px) { .auth-card { padding: 28px 22px; } .auth-header { padding: 0 20px; } .auth-chooser-branding { margin: -28px -22px 28px; padding: 22px; } .auth-brand img { width: 112px; } }
