.alertMessages {
    position: fixed;
    top: 10%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border-radius: 10px;
}

.alertMessages p {
    padding: 10px;
    margin: 0;
}

.alertMessages a {
    color: #e9ecef;
}

.auth-button__spinner {
    display: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
    animation: comma-auth-spin 0.7s linear infinite;
}

.is-auth-loading {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait !important;
    opacity: 0.8;
    pointer-events: none;
}

.is-auth-loading .auth-button__spinner {
    display: inline-block;
}

@keyframes comma-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/*noinspection CssUnusedSymbol*/
.alert_error {
    border-right: 3px solid #ff1515;
    visibility: visible;
}

/*noinspection CssUnusedSymbol*/
.alert_success {
    border-right: 3px solid rgba(57, 105, 239, 0.85);
}

.form-login {
    width: 100%;
    max-width: 520px;
    margin: 4rem auto;
    display: flex;
    align-content: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
}

.form-login h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    direction: ltr;
}

/* .form-login form,
.form-login .auth-logged-in {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 1px 1px 20px 20px var(--box-sh-color);
} */

.auth-form__hint {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-bottom: 1px solid #dfdfdf;
}

.auth-field__label {
    font-size: 0.85rem;
    color: #343434;
}

.auth-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    border: none;
}

.auth-field .required {
    color: #e74c3c;
}

.auth-form__footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.auth-form__footer a {
    color: var(--signinn-text);
    text-decoration: none;
}

.auth-logged-in__actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.btn-send--outline {
    background: var(--exit-bg) !important;
    color: var(--exit-text) !important;
}

.btn-send--outline:hover{
    color: var(--exit-hover) !important;
}

.btn-send--secondary {
    background: #ffffff;
    color: var(--code-text);
    border: none;
    width: 100%;
    margin-top: 0.5rem;
}

.form-login--sms .btn-send--secondary{
    color: var(--sms-text);
}

.form-login--sms .btn-send--secondary:hover{
    color: var(--sms-hover);
}

.form-login--sms .auth-sms-submit{
    color: var(--reg-text);
}

.form-login--sms .auth-sms-submit:hover{
    color: var(--reg-hover);
}

.form-login--sms .auth-sms-code-field {
    width: 100%;
}

.form-login--sms .auth-form__footer a{
    color: var(--log-in-text);
}

.form-login--sms .auth-logged-in .btn-send{
    color: var(--main-page);
}

.form-login--sms .auth-logged-in .btn-send:hover{
    color: var(--main-page-hover);
}

.auth-error {
    color: #c0392b;
    text-align: center;
    padding: 1rem;
}

.form-login label {
    margin: 10px 0;
}

form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

form .input-wrapper svg{
    position: absolute;
    right: 1rem;
    pointer-events: none;
    z-index: 1;
}

form .input-divider {
    position: relative;
    width: 1px;
    height: 24px;
    background: rgba(233, 233, 233, 1);
    right: 42px;
}

.form-login .c-text-val {
    padding: 1px 10px;
    border: none;
    border-radius: 10px;
    line-height: 32px;
    height: 45px;
    box-shadow: none !important;
    outline: none !important;
    transition: .3s;
}

.form-login .c-text-val::placeholder {
    color: #868686;
}

.form-login .btn-send {
    text-align: center;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    width: 65%;
    transition: .3s;
    background: #FFFFFF;
    color: var(--account-text);
}

.form-login .btn-send:hover{
    color:var(--loginn-text);
}

.c-login-form-type-two {
    --clt-radius: 28px;
    --clt-accent: var(--login-btn, #0054F7);
    --clt-on-accent: var(--login-btn-text, #fff);
    margin: 4rem auto;
    max-width: 820px;
    background: #fff;
    border: 1px solid rgba(213, 213, 213, 0.55);
    border-radius: var(--clt-radius);
    box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    padding: 0;
}

.c-login-form-type-two,
.c-login-form-type-two * {
    box-sizing: border-box;
}

.c-login-form-type-two .clt-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
    min-height: 420px;
}

.c-login-form-type-two .clt-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.4rem 1.8rem;
    overflow: hidden;
    color: var(--clt-on-accent);
    background: linear-gradient(165deg, var(--clt-accent) 0%, color-mix(in srgb, var(--clt-accent) 72%, #0b1f4d) 100%);
}

.c-login-form-type-two .clt-brand__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    top: -70px;
    inset-inline-start: -50px;
    pointer-events: none;
}

.c-login-form-type-two .clt-brand__logo {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 22px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: 1rem;
}

.c-login-form-type-two .clt-brand__logo img {
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
}

.c-login-form-type-two .clt-brand__name {
    position: relative;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--clt-on-accent);
}

.c-login-form-type-two .clt-brand__welcome {
    position: relative;
    margin: 0.45rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--clt-on-accent) 88%, transparent);
}

.c-login-form-type-two .clt-brand__desc {
    position: relative;
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 16rem;
    color: color-mix(in srgb, var(--clt-on-accent) 78%, transparent);
}

.c-login-form-type-two .clt-brand__wave {
    position: relative;
    margin-top: 1.35rem;
    color: var(--desc-icon, #fff);
    opacity: 0.9;
}

.c-login-form-type-two .clt-form {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem 2rem 1.8rem;
}

.c-login-form-type-two .clt-form__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--login-text, #111);
}

.c-login-form-type-two .clt-form__hint {
    margin: 0.4rem 0 1.35rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--desc-text, #5c5c5c);
}

.c-login-form-type-two .clt-phone {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 0 0.9rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ececf1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c-login-form-type-two .clt-phone:focus-within {
    border-color: color-mix(in srgb, var(--clt-accent) 45%, #ececf1);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--clt-accent) 12%, transparent);
}

.c-login-form-type-two .clt-phone__icon {
    display: inline-flex;
    color: var(--clt-accent);
    flex: 0 0 auto;
}

.c-login-form-type-two .clt-phone__prefix {
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clt-accent);
    direction: ltr;
    padding-inline-end: 0.65rem;
    border-inline-end: 1px solid #ececf1;
}

.c-login-form-type-two .clt-phone .phone-number {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    padding: 0.85rem 0;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-align: left;
}

.c-login-form-type-two .clt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 48px;
    margin-top: 0.9rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.c-login-form-type-two .clt-btn--primary,
.c-login-form-type-two .btn-send--secondary,
.c-login-form-type-two.form-login--sms .btn-send--secondary {
    color: var(--clt-on-accent) !important;
    background: linear-gradient(135deg, var(--clt-accent), color-mix(in srgb, var(--clt-accent) 70%, #226cff));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--clt-accent) 28%, transparent);
}

.c-login-form-type-two .clt-btn--primary:hover,
.c-login-form-type-two .btn-send--secondary:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.c-login-form-type-two .btn-send__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid color-mix(in srgb, var(--clt-on-accent) 40%, transparent);
    border-top-color: var(--clt-on-accent);
    display: none;
    animation: comma-auth-spin 0.7s linear infinite;
}

.c-login-form-type-two .btn-send.is-loading .btn-send__spinner {
    display: inline-block;
}

.c-login-form-type-two .clt-code {
    display: none;
    margin-top: 1.1rem;
}

.c-login-form-type-two form.is-sms-code-sent .clt-code {
    display: block;
    animation: clt-fade-in 0.35s ease both;
}

.c-login-form-type-two form.is-sms-code-sent .clt-phone,
.c-login-form-type-two form.is-sms-code-sent #btn_send_sms_code {
    opacity: 0.55;
    pointer-events: none;
}

.c-login-form-type-two .clt-code__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}

.c-login-form-type-two .clt-code__label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--login-text, #111);
}

.c-login-form-type-two .clt-change-number {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--code-text, var(--clt-accent));
    cursor: pointer;
}

.c-login-form-type-two .clt-otp {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    direction: ltr;
}

.c-login-form-type-two .otp-box {
    width: 18%;
    max-width: 52px;
    height: 52px;
    border: 1px solid #ececf1;
    border-radius: 12px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    background: #fafbff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c-login-form-type-two .otp-box:focus,
.c-login-form-type-two .otp-box.is-filled {
    border-color: var(--clt-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--clt-accent) 14%, transparent);
    background: #fff;
}

.c-login-form-type-two .clt-code__hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.c-login-form-type-two .clt-resend {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: #8a8f9b;
    text-align: center;
}

.c-login-form-type-two .clt-resend__btn,
.c-login-form-type-two .auth-resend__btn {
    display: none;
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--code-text, var(--clt-accent));
    cursor: pointer;
}

.c-login-form-type-two .auth-resend__btn:not([disabled]) {
    display: inline;
}

.c-login-form-type-two #resend_timer_text.is-hidden {
    display: none;
}

.c-login-form-type-two .auth-sms-submit {
    display: none;
}

.c-login-form-type-two form.is-sms-code-sent .auth-sms-submit {
    display: inline-flex !important;
}

.c-login-form-type-two .save-phone-number-btn,
.c-login-form-type-two .clt-btn__icon {
    color: inherit;
}

.c-login-form-type-two .clt-btn__icon svg {
    display: block;
}

.c-login-form-type-two .clt-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.c-login-form-type-two .clt-footer a {
    color: var(--logsign-text, var(--clt-accent));
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f6f7fb;
    border: 1px solid #ececf1;
    transition: background 0.15s, color 0.15s;
}

.c-login-form-type-two .clt-footer a:hover {
    background: color-mix(in srgb, var(--clt-accent) 8%, #fff);
}

.c-login-form-type-two .clt-footer__sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4d7de;
}

.c-login-form-type-two .clt-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.c-login-form-type-two .clt-logged-in__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clt-on-accent);
    background: var(--clt-accent);
    margin-bottom: 0.9rem;
}

.c-login-form-type-two .clt-logged-in__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--login-text, #111);
}

.c-login-form-type-two .clt-logged-in__hint {
    margin: 0.4rem 0 0;
    color: var(--desc-text, #5c5c5c);
    font-size: 0.9rem;
}

.c-login-form-type-two .clt-logged-in__actions {
    display: flex;
    gap: 0.6rem;
    width: min(100%, 320px);
    margin-top: 1.2rem;
}

.c-login-form-type-two .clt-logged-in__actions .clt-btn {
    width: auto;
    flex: 1;
    margin-top: 0;
}

.c-login-form-type-two .clt-btn--ghost {
    background: #f6f7fb;
    color: var(--login-text, #111);
    border: 1px solid #ececf1;
}

@keyframes clt-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .c-login-form-type-two {
        margin: 1.5rem auto;
        max-width: 480px;
        border-radius: 22px;
    }

    .c-login-form-type-two .clt-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .c-login-form-type-two .clt-brand {
        padding: 2rem 1.4rem 1.5rem;
    }

    .c-login-form-type-two .clt-form {
        padding: 1.5rem 1.25rem 1.4rem;
    }
}