button[window-elem="link-button"] { font-family: inherit; cursor: pointer; }
button.first-screen_main_registration { padding: 0; border: 0; background: transparent; }
body.registration-is-open { overflow: hidden; }
.registration-modal[hidden] { display: none; }
.registration-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 15, 18, .72); overflow-y: auto; overscroll-behavior: contain; }
.registration-panel { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 36px; background: #fff; color: #202020; border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.25); font: 16px/1.45 Lato, sans-serif; }
.registration-panel *, .registration-panel *::before, .registration-panel *::after { box-sizing: border-box; }
.registration-close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font: 32px/1 Lato, sans-serif; color: #666; cursor: pointer; }
.registration-logo { width: 120px; max-height: 40px; margin-bottom: 24px; }
.registration-panel h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; }
.registration-intro { color: #666; margin-bottom: 24px; }
.registration-label { display: block; margin-bottom: 8px; font-weight: 700; }
.registration-phone { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; overflow: hidden; }
.registration-phone span { padding-left: 14px; color: #666; }
.registration-phone input { width: 100%; min-width: 0; padding: 14px 10px; border: 0; background: transparent; font: inherit; font-size: 18px; }
.registration-phone:focus-within { outline: 2px solid #ff4b44; outline-offset: 2px; }
.registration-phone input:focus { outline: none; }
.registration-code { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; background: #fafafa; font: 24px/1.3 Lato, sans-serif; letter-spacing: 8px; text-align: center; }
.registration-panel button, .registration-panel a { -webkit-tap-highlight-color: transparent; }
.registration-panel :focus-visible { outline: 2px solid #ff4b44; outline-offset: 3px; }
.registration-panel .form_input_error { color: #c60014; font-size: 14px; line-height: 1.4; margin: 6px 0; overflow-wrap: anywhere; }
.registration-panel .form_input_error:empty { margin: 0; }
.registration-consent { font-size: 13px; color: #777; margin: 18px 0; }
.registration-panel a { color: #c60014; text-decoration: underline; }
.registration-primary { width: 100%; min-height: 52px; border: 0; border-radius: 8px; padding: 14px; background: #ff4b44; color: #fff; font: 700 17px/1.3 Lato, sans-serif; cursor: pointer; }
.registration-primary:hover { background: #b20412; }
.registration-primary:disabled { cursor: wait; }
.registration-panel .first_screen_form_label { position: relative; }
.registration-loader { display: none; position: absolute; width: 22px; height: 22px; left: calc(50% - 11px); top: calc(50% - 11px); border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: registration-spin .8s linear infinite; pointer-events: none; }
.registration-panel .loading .registration-primary { color: transparent; }
.registration-panel .loading .registration-loader { display: block; }
.registration-panel .second-step { display: none; }
.registration-sent { margin-bottom: 18px; color: #666; }
#otp_phone { white-space: nowrap; color: #222; }
.registration-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; margin: 16px 0 8px; }
.registration-actions button { background: transparent; border: 0; color: #c60014; font: 14px/1.4 Lato, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.registration-actions button:disabled { color: #999; cursor: default; text-decoration: none; }
.registration-timer { min-height: 20px; color: #777; font-size: 13px; margin-bottom: 16px; }
@keyframes registration-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .registration-modal { padding: 12px; }
    .registration-panel { padding: 28px 20px; max-height: calc(100dvh - 24px); border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .registration-loader { animation-duration: 1.8s; } }
