/* Дополнительные стили для страниц авторизации */

/* Анимации для элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Применение анимаций */
.auth-card {
    animation: fadeInUp 0.6s ease-out;
}

.decorative-left {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.decorative-right {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

/* Стили для декоративных котиков */
.decorative-left:hover,
.decorative-right:hover {
    opacity: 0.2 !important;
    transform: scale(1.1) !important;
    transition: all 0.3s ease !important;
}

/* Кастомные стили для reCAPTCHA */
.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 640px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}

/* Улучшенные стили для чекбокса */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.custom-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Стили для мобильных устройств */
@media (max-width: 640px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .decorative-elements {
        display: none;
    }
}

/* Темная тема (если пользователь предпочитает) */
@media (prefers-color-scheme: dark) {
    .bg-gradient-to-br {
        background: linear-gradient(to bottom right, #1e293b, #334155, #475569);
    }
    
    .text-gray-900 {
        color: #f1f5f9;
    }
    
    .text-gray-600 {
        color: #cbd5e1;
    }
    
    .bg-white {
        background-color: #1e293b;
    }
    
    .border-gray-100 {
        border-color: #334155;
    }
    
    .ring-gray-300 {
        --tw-ring-color: #475569;
    }
    
    .placeholder-gray-400 {
        color: #64748b;
    }
}

/* Улучшенные hover эффекты */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Стили для состояний загрузки */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Адаптивные изображения */
.responsive-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Улучшенные тени */
.shadow-custom {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-custom:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Дополнительные стили для котиков */
.decorative-left img,
.decorative-right img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.decorative-left:hover img,
.decorative-right:hover img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}
