/**
 * Стили для капчи
 * Белый экран с центрированным контентом
 */

/* Оверлей капчи - покрывает весь экран */
.captcha-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: captchaFadeIn 0.3s ease-in;
}

@keyframes captchaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимация исчезновения */
.captcha-fade-out {
    animation: captchaFadeOut 0.5s ease-out forwards;
}

@keyframes captchaFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Контейнер капчи */
.captcha-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 48px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.captcha-container.captcha-success {
    box-shadow: 0 2px 30px rgba(29, 170, 97, 0.15);
    border-color: #1DAA61;
}

/* Заголовок */
.captcha-header {
    margin-bottom: 32px;
}

.captcha-logo {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.captcha-title {
    font-size: 24px;
    font-weight: 600;
    color: #0A1014;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.captcha-subtitle {
    font-size: 15px;
    color: #667781;
    margin: 0;
    line-height: 1.5;
}

/* Тело капчи */
.captcha-body {
    margin-bottom: 24px;
}

/* Checkbox контейнер */
.captcha-checkbox-wrapper {
    background: #f5f6f6;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.captcha-checkbox-wrapper:hover {
    background: #edf0f2;
    border-color: #b8c1c9;
}

/* Checkbox */
.captcha-checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.captcha-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомный чекбокс */
.captcha-checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #ffffff;
    border: 2px solid #b8c1c9;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.captcha-checkbox-container:hover .captcha-checkmark {
    border-color: #1DAA61;
}

.captcha-checkbox-input:checked ~ .captcha-checkmark {
    background-color: #1DAA61;
    border-color: #1DAA61;
}

/* Галочка */
.captcha-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.captcha-checkbox-input:checked ~ .captcha-checkmark:after {
    display: block;
}

/* Анимация галочки */
@keyframes checkmarkAppear {
    0% {
        transform: rotate(45deg) scale(0);
    }
    50% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

.captcha-checkbox-input:checked ~ .captcha-checkmark:after {
    animation: checkmarkAppear 0.3s ease;
}

/* Текст чекбокса */
.captcha-checkbox-label {
    font-size: 16px;
    font-weight: 500;
    color: #0A1014;
    line-height: 1.4;
}

/* Информационный текст */
.captcha-info {
    font-size: 14px;
    color: #667781;
    line-height: 1.5;
    min-height: 21px;
    transition: color 0.3s ease;
}

/* Футер */
.captcha-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.captcha-footer-text {
    font-size: 13px;
    color: #667781;
}

/* Адаптивность */
@media (max-width: 480px) {
    .captcha-container {
        padding: 32px 24px;
        width: 95%;
    }
    
    .captcha-title {
        font-size: 20px;
    }
    
    .captcha-subtitle {
        font-size: 14px;
    }
    
    .captcha-checkbox-label {
        font-size: 15px;
    }
}

/* Скрываем основной контент до прохождения капчи */
#mount_0_0_3d {
    display: none;
}

/* После загрузки капчи показываем контент */
body.captcha-verified #mount_0_0_3d {
    display: block;
}

