.loader-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.6);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 10000;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
            animation: spin 1s linear infinite;
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes spin {
    to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
#ajax_android_forgot {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 70vh;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.block-pass {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 10px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.auth-switch {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.auth-switch__btn {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
            flex: 1 1 0;
}

.call-wait {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}
.call-wait__hint {
    margin: 0 0 8px;
    font-size: 14px;
}
.call-wait__phone {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
}
.call-wait__phone a {
    color: #2e7d32;
    text-decoration: none;
}
.call-wait__status {
    margin: 0 0 12px;
    font-size: 14px;
}
.call-wait__dots::after {
    display: inline-block;
    content: '';
    -webkit-animation: callDots 1.2s steps(4, end) infinite;
            animation: callDots 1.2s steps(4, end) infinite;
}
@-webkit-keyframes callDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}
@keyframes callDots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
}
.call-success {
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background: #f1f8e9;
}
.call-success__icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.call-success__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}
.call-success__text {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.call-error {
    padding: 24px 16px;
    text-align: center;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    background: #fdecea;
}
.call-error__icon {
    width: 48px;
    height: 48px;
    line-height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #c62828;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.call-error__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #c62828;
}
.call-error__text {
    margin: 0 0 16px;
    font-size: 14px;
    color: #444;
    white-space: pre-line;
}

.call-wait__phone-link {
    background: none;
    border: none;
    padding: 0;
    color: #2e7d32;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.call-wait__phone-link:active {
    text-decoration: underline;
}

.call-notice {
    margin: 12px 0;
    padding: 14px 16px;
    border-left: 4px solid #f0ad4e;
    background: #fcf8e3;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
}
.call-notice__title {
    margin: 0 0 8px;
    font-weight: 600;
}
.call-notice__steps {
    margin: 0 0 10px 18px;
    padding: 0;
}
.call-notice__steps li {
    margin-bottom: 4px;
}
.call-notice__important {
    margin: 8px 0;
    padding: 8px 10px;
    background: #fff3cd;
    border-radius: 4px;
}
.call-notice__example {
    margin: 8px 0 0;
    font-size: 13px;
    color: #555;
}

.call-wait__notice {
    margin: 14px 0;
    text-align: left;
    font-size: 14px;
}
.call-wait__notice p {
    margin: 0 0 6px;
}
.call-wait__important {
    color: #a94442;
    font-weight: 600;
}
.password-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 4px;
}

.password-rules li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #828b95;
    -webkit-transition: color 0.15s ease;
    -o-transition: color 0.15s ease;
    transition: color 0.15s ease;
}

.password-rules li .icon {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16px;
            flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    -webkit-transition: background-color 0.15s ease, color 0.15s ease;
    -o-transition: background-color 0.15s ease, color 0.15s ease;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Нейтральное состояние (пароль ещё не начали вводить) */
.password-rules li .icon {
    background: #e9ecef;
    color: #adb5bd;
}

/* Правило выполнено */
.password-rules li.is-ok {
    color: #1e7e34;
}

.password-rules li.is-ok .icon {
    background: #d4edda;
    color: #1e7e34;
}

/* Правило нарушено */
.password-rules li.is-fail {
    color: #c82333;
}

.password-rules li.is-fail .icon {
    background: #f8d7da;
    color: #c82333;
}
.password-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 4px;
}

.password-rules li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #828b95;
    -webkit-transition: color 0.15s ease;
    -o-transition: color 0.15s ease;
    transition: color 0.15s ease;
}

.password-rules li .icon {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16px;
            flex: 0 0 16px;
    width: 16px;
    height: 16px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    -webkit-transition: background-color 0.15s ease, color 0.15s ease;
    -o-transition: background-color 0.15s ease, color 0.15s ease;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* Нейтральное состояние (пароль ещё не начали вводить) */
.password-rules li .icon {
    background: #e9ecef;
    color: #adb5bd;
}

/* Правило выполнено */
.password-rules li.is-ok {
    color: #1e7e34;
}

.password-rules li.is-ok .icon {
    background: #d4edda;
    color: #1e7e34;
}

/* Правило нарушено */
.password-rules li.is-fail {
    color: #c82333;
}

.password-rules li.is-fail .icon {
    background: #f8d7da;
    color: #c82333;
}

.ui-ctl-element.is-ok   { border-color: #28a745 !important; }
.ui-ctl-element.is-fail { border-color: #dc3545 !important; }

.form-text.text-success { color: #1e7e34; }
.form-text.text-danger  { color: #c82333; }
.modal-overlay {
    position: fixed;
    top: -100%; left: -100%; right: -100%; bottom: -100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 9999;
}
.modal-content {
    background-color: #fff!important;
    padding: 30px;
    border-radius: 10px;
    max-width: 300px;
    width: 99%;
}