/* Базовые стили попапа */
.auth2025_popup {
    font-family: 'Arial', sans-serif;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth2025_popup.active {
    display: flex;
    opacity: 1;
}

.auth2025_popup__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* Контентные блоки */
.auth2025_popup__content,
.auth2025_popup__content1,
.auth2025_popup__content2,
.auth2025_popup__content3 {
    width: 390px;
    border-radius: 20px;
    background: linear-gradient(277.78deg, #000000 27.17%, #CE2406 89.91%);
    position: relative;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth2025_popup.active .auth2025_popup__content,
.auth2025_popup.active .auth2025_popup__content1 {
    transform: translateY(0);
}

/* Элементы UI */
.auth2025_x__ls {
    background: rgba(255, 255, 255, 0.1);
    width: 35px; height: 35px;
    border-radius: 50%;
    float: right;
    position: relative;
    top: -15px; left: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth2025_x__ls:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auth2025_x__lsimg {
    position: relative;
    top: 6px; left: 11px;
    width: 14px;
}

.auth2025_title {
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 120%;
    margin: 31px 0 23px;
}

.auth2025_subtext {
    color: #9b999a;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Ввод СМС */
.auth2025_sms-input-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.auth2025_sms-input {
    width: 50px;
    height: 51px!important;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
}
.auth2025_sms-input[type="text"] {
    border-radius: 15px;
}

.auth2025_sms-input:focus {
    border-color: #ff6b01;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 107, 1, 0.3);
}

.auth2025_sms-input.error {
    border-color: #ff0000;
    color: #ff0000;
}

/* Кнопки и ссылки */
.auth2025_popup__button {
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: none;
    transition: opacity 0.2s;
}

.auth2025_popup__button:not(:disabled):hover {
    opacity: 0.9;
}

.auth2025_popup__button:disabled {
    background: #999 !important;
    cursor: not-allowed !important;
}

.auth2025_email_end {
    color: #9b999a;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s;
}

.auth2025_email_end:hover {
    color: #fff !important;
}

.auth2025_bottom-text {
    padding: 15px;
    color: #9b999a;
    text-align: center;
    font-size: 10px;
}

.auth2025_bottom-text a {
    color: #fff;
    text-decoration: underline;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .auth2025_popup__content,
    .auth2025_popup__content1 {
        width: 90%;
        margin: 0 auto;
    }

    .auth2025_sms-input {
        width: 45px;
        height: 48px;
        font-size: 20px;
    }

    .auth2025_sms-input-row {
        gap: 8px;
    }

    form#smsAutForm input[type="tel"] {
        width: 100% !important;
    }
}

/* Стили для широкого попапа выбора типа */
.auth2025_popup__content_wide {
    width: 800px;
    max-width: 95%;
    border-radius: 20px;
    background: linear-gradient(135deg, #a5200b 0%, #000000 100%);
    padding: 40px;
    position: relative;
    z-index: 10001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth2025_popup.active .auth2025_popup__content_wide {
    transform: translateY(0);
}

.auth2025_type-cards {
    display: flex;
    gap: 15px;
    margin: 40px 0;
}

.auth2025_type-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: 3px solid transparent;
    transition: all 0.2s ease;
}

.auth2025_type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Скрываем стандартный радио и рисуем кастомный */
.auth2025_type-card input[type="radio"] {
    display: none;
}

.auth2025_radio-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ccc;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.auth2025_type-card input[type="radio"]:checked + .auth2025_radio-custom {
    border-color: #ff9800;
}

.auth2025_type-card input[type="radio"]:checked + .auth2025_radio-custom::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ff9800;
    border-radius: 50%;
}

.auth2025_type-card input[type="radio"]:checked ~ .auth2025_type-card-text strong {
    color: #000;
}

.auth2025_type-card-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth2025_type-card-text strong {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.auth2025_type-card-text span {
    color: #888;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .auth2025_type-cards {
        flex-direction: column;
    }
}