.channel-auth-overlay[hidden], .channel-auth-form[hidden] { display: none !important; }
.channel-auth-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(5, 21, 39, .68); }
.channel-auth-card { position: relative; width: min(430px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; box-sizing: border-box; padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.channel-auth-card h2 { margin: 8px 0 10px; color: #082743; font-size: 26px; }
.channel-auth-intro, .channel-auth-help, .channel-auth-form p { color: #607287; font-size: 13px; line-height: 1.7; }
.channel-auth-help { margin: 20px 0 0; }
.channel-auth-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; color: #53697c; font-size: 28px; cursor: pointer; }
.channel-auth-form { display: grid; gap: 15px; margin-top: 22px; }
.channel-auth-form label { display: grid; gap: 6px; color: #2b4052; font-size: 13px; font-weight: 600; }
.channel-auth-form input { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #c8d4dc; border-radius: 9px; background: #fff; color: #102c43; font: inherit; }
.channel-auth-form input:focus-visible { outline: 2px solid #167e70; outline-offset: 1px; }
.channel-auth-message { min-height: 19px; margin: 12px 0 0; color: #a33b35; font-size: 13px; }
.channel-register-switch { margin-top: 2px; padding: 10px 12px; border: 1px solid #167e70; border-radius: 9px; background: #fff; color: #12695e; font: inherit; cursor: pointer; }
.channel-register-switch[hidden] { display: none !important; }
#channelRegistrationForm button { padding: 11px 12px; border-radius: 9px; font: inherit; cursor: pointer; }
#channelRegistrationForm button[type="submit"] { border: 1px solid #167e70; background: #167e70; color: #fff; }
#channelRegistrationForm button[type="button"] { border: 1px solid #b8c8d3; background: #fff; color: #24465d; }
#channelRegistrationForm button:disabled { cursor: progress; opacity: .62; }
.channel-login-trigger { white-space: nowrap; }
.channel-auth-methods[hidden], .channel-auth-account-actions[hidden] { display: none !important; }
.channel-auth-methods, .channel-auth-account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.channel-auth-methods button, .channel-auth-account-actions button, .channel-phone-code-row button { padding: 9px 11px; border: 1px solid #b8c8d3; border-radius: 8px; background: #fff; color: #24465d; font: inherit; cursor: pointer; }
.channel-auth-methods button[aria-pressed="true"] { border-color: #167e70; color: #12695e; }
.channel-auth-link { padding: 0; border: 0; background: transparent; color: #12695e; font: inherit; text-decoration: underline; cursor: pointer; }
.channel-phone-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.channel-phone-status { margin: 0; min-height: 22px; }
.channel-required { color: #a33b35; }
.channel-auth-form button:disabled, .channel-auth-methods button:disabled, .channel-auth-account-actions button:disabled { opacity: .62; cursor: not-allowed; }
@media (max-width: 640px) { .channel-auth-card { padding: 26px 20px; } .channel-login-trigger { padding: 8px 10px; font-size: 12px; } }
