/* Cloud authentication shares the official website palette and typography. */
.cloud-auth-page { --page: #f5f7f9; --surface: #fff; --text: #243247; --muted: #596575; --border: #dce2e8; --line: #dce2e8; --primary: #205b92; background: var(--page); font: 15px/1.8 Arial, "Microsoft YaHei", "PingFang SC", sans-serif; }
.theme-dark .cloud-auth-page { --page: #172635; --surface: #213447; --text: #e5edf5; --muted: #b6c4d3; --border: #42566b; --line: #42566b; --primary: #a5cef0; }
.cloud-site-header { background: #19334d; border-bottom: 1px solid #39546e; }
.cloud-site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; min-height: 88px; padding: 16px 32px; margin: auto; }
.cloud-wordmark { color: #fff; text-decoration: none; font-size: 25px; font-weight: 700; line-height: 1.4; }
.cloud-home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 16px; border: 1px solid #f1bd68; border-radius: 3px; color: #f1bd68; text-decoration: none; white-space: nowrap; }
.cloud-home-button:hover { background: #f1bd68; color: #19334d; }
.cloud-site-nav a:focus-visible { outline: 3px solid #f1bd68; outline-offset: 4px; }
.cloud-auth-page .setup-shell { max-width: 648px; padding-top: 48px; }
.cloud-auth-page .setup-panel { border-top-color: #205b92; }
.cloud-auth-page .setup-submit { background: #205b92; border-color: #205b92; font-weight: 600; }
.cloud-auth-page .setup-submit:hover { background: #174570; }
@media (max-width: 540px) { .cloud-site-nav { min-height: 72px; padding: 14px 20px; gap: 16px; } .cloud-wordmark { font-size: 19px; } .cloud-home-button { min-height: 44px; padding: 7px 12px; font-size: 13px; } .cloud-auth-page .setup-shell { padding-top: 24px; } }
.cloud-auth-heading { padding: 0; }
.cloud-auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cloud-auth-tabs a { display: flex; justify-content: center; align-items: center; min-height: 56px; padding: 14px 18px; border-bottom: 3px solid transparent; color: var(--muted); background: var(--page); text-decoration: none; font-size: 17px; }
.cloud-auth-tabs a[aria-current="page"] { border-bottom-color: var(--primary); color: var(--primary); background: var(--surface); font-weight: 600; }
.cloud-auth-tabs a:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
.cloud-auth-actions { justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cloud-login-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cloud-login-actions a, .cloud-back-link { color: var(--primary); text-underline-offset: 3px; }
@media (max-width: 540px) { .cloud-auth-actions { gap: 8px; } .cloud-login-actions { gap: 8px; } .cloud-login-actions a { font-size: 13px; } }

.cloud-captcha { display: flex; align-items: center; gap: 12px; }
.cloud-captcha input { flex: 1; min-width: 0; }
.cloud-captcha-refresh { display: block; flex-shrink: 0; padding: 0; border: 1px solid var(--border); border-radius: 3px; background: #edf3f8; cursor: pointer; }
.cloud-captcha-refresh img { display: block; max-width: 100%; }
.cloud-captcha-refresh:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.cloud-auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.cloud-site-header, .cloud-site-footer { flex-shrink: 0; }
.cloud-auth-page .setup-shell { flex: 1; width: 100%; }
.cloud-site-footer { border-top: 1px solid #253f58; color: #c1cdda; background: #172d42; font-size: 12px; }
.cloud-footer-content { max-width: 1200px; padding: 24px 32px; margin: auto; }
.cloud-footer-top, .cloud-footer-top nav, .cloud-footer-filings { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.cloud-footer-top nav { gap: 8px; }
.cloud-footer-filings { margin-top: 10px; }
.cloud-site-footer a { color: #c1cdda; text-decoration: none; }
.cloud-site-footer a:hover { color: #fff; text-decoration: underline; }
.cloud-site-footer a:focus-visible { outline: 2px solid #f1bd68; outline-offset: 3px; }
.cloud-footer-filings a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 540px) { .cloud-footer-content { padding: 20px; } .cloud-footer-top, .cloud-footer-filings { gap: 8px 16px; } }

.portal-message { margin: 16px 28px 0; padding: 10px 12px; border: 1px solid; border-radius: 3px; font-size: 14px; }
.portal-message-success { color: #246b3d; background: #edf8f0; border-color: #a8d3b6; }
.portal-message-info { color: #205b92; background: #edf4fb; border-color: #b2cbe2; }
.portal-message-error { color: #a12622; background: #fff2f0; border-color: #d9aaa7; }
.theme-dark .portal-message-success { color: #a7ddbc; background: #203c30; border-color: #46745a; }
.theme-dark .portal-message-info { color: #a5cfee; background: #213b50; border-color: #496d8a; }
.theme-dark .portal-message-error { color: #ffb9b4; background: #492526; border-color: #9b5f5a; }
@media (max-width: 540px) { .portal-message { margin: 14px 18px 0; } }
