/* Blade adaptation of the Bitrix24 UI light form design.
 * Reference: https://bitrix24.github.io/b24ui/docs/getting-started/theme/design-system/
 * Scoped to registration so account and sign-in forms retain their styles.
 */
.registration-page {
    --registration-accent: #0075e1;
    --registration-border: #d5dce3;
    box-sizing: border-box;
    min-height: 100vh;
    padding: 48px 24px 100px;
    background: #f2f5f8;
    color: #333b46;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.registration-page *, .registration-page *::before, .registration-page *::after { box-sizing: border-box; }
.registration-card {
    width: 100%;
    max-width: 584px;
    margin: 0 auto;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #e4e9ee;
    border-radius: 20px;
    box-shadow: 0 8px 32px #1836500a;
}
.registration-heading { margin-bottom: 30px; }
.registration-brand { display: inline-block; margin-bottom: 24px; color: #263445; font-size: 20px; font-weight: 750; letter-spacing: 1px; text-decoration: none; }
.registration-brand span { color: var(--registration-accent); }
.registration-heading h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; color: #202b38; }
.registration-heading p { margin: 0; font-size: 15px; line-height: 1.5; color: #687787; }
.registration-page .setting-lk__inner { display: flex; flex-direction: column; gap: 20px; max-width: none; }
.registration-page .register .setting-lk__cell { width: 100%; margin: 0; }
.registration-page .register .setting-lk__cell label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #424e5c; }
.registration-page .register input:not([type="hidden"]):not([type="checkbox"]) {
    display: block;
    width: 100%;
    max-width: none;
    height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--registration-border);
    border-radius: 8px;
    background: #fff;
    color: #202b38;
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: 0 1px 2px #18365005;
    transition: border-color .15s, box-shadow .15s;
}
.registration-page .register input:hover { border-color: #98a6b5; }
.registration-page .register input:focus-visible { border-color: var(--registration-accent); box-shadow: 0 0 0 3px #0075e124; }
.registration-page .register .registration-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; }
.registration-page .register input[type="checkbox"] { display: block; appearance: auto; flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--registration-accent); cursor: pointer; }
.registration-page .register input[type="checkbox"] + label { padding-left: 0; }
.registration-page .register input[type="checkbox"] + label::before,
.registration-page .register input[type="checkbox"] + label::after { display: none; }
.registration-page .register .registration-consent label { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.65; color: #667585; }
.registration-page a:not(.registration-brand) { color: #0068c8; text-decoration: underline; text-underline-offset: 3px; }
.registration-page a:focus-visible, .registration-page button:focus-visible { outline: 3px solid #0075e155; outline-offset: 3px; }
.registration-page .register .button { display: block; width: 100%; max-width: none; min-height: 48px; margin: 0; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--registration-accent); color: white; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; text-transform: none; }
.registration-page .register .button { background: linear-gradient(90deg, #C71585 0%, #DD5967 50%, #E99B3A 100%); }
.registration-page .register .button:hover:not(:disabled) { filter: brightness(.94); }
.registration-page .register .button:disabled { background: #98a6b5; cursor: default; }
.registration-page .register br { display: none; }
.registration-page .smart-captcha:empty { display: none; }
.registration-login { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid #edf0f3; text-align: center; font-size: 14px; line-height: 1.5; color: #687787; }
.registration-login a { margin-left: 4px; font-weight: 600; }
@media (max-width: 600px) {
    .registration-page { padding: 16px 12px 100px; }
    .registration-card { padding: 28px 22px; border-radius: 14px; }
    .registration-heading h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .registration-page .register input { transition: none; }
}

.registration-captcha-notice { margin: 12px 0 0; color: #667585; font-size: 12px; line-height: 1.6; }
.registration-captcha-error { margin: 0 0 12px; color: #b42318; font-size: 14px; line-height: 1.5; }
.registration-captcha-error[hidden] { display: none; }
