/* Общие стили для страницы входа */
.flex-equal {
    flex: 1 1 0;
}

/* Карточки */
.card-dark {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.card-dark:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Входная группа */
.input-group-text {
    transition: all 0.3s ease;
}

.form-control:focus + .input-group-text,
.form-control:focus ~ .input-group-text {
    border-color: #0C1B44;
    background-color: #fff;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invalid-feedback {
    animation: fadeIn 0.3s ease;
}

/* Иконки в карточках */
.card-dark:hover .fas {
    transform: scale(1.1);
}

/* Градиенты */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4285F4, #1a73e8);
}

/* Логотип */
.app-logo {
    position: relative;
    display: inline-block;
}

.app-logo-glow {
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, #4285F4, #1a73e8);
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.2;
}

.app-logo-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #0C1B44, #1B2B4D);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-logo-shine {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotateLogo 3s linear infinite;
}

.app-logo-circle i {
    font-size: 24px;
    position: relative;
    z-index: 1;
    color: white;
    animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Декоративные элементы */
.geometric-accent {
    position: absolute;
    background: linear-gradient(135deg, rgba(66,133,244,0.1), rgba(66,133,244,0.05));
    border-radius: 50%;
}

.accent-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    transform: rotate(-15deg);
}

.accent-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    transform: rotate(30deg);
}

/* Форма входа */
.login-form {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(66,133,244,0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 24px -1px rgba(66,133,244,0.1),
        0 2px 8px -1px rgba(66,133,244,0.06);
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(15, 23, 42, 0.6);
        border-color: rgba(66, 133, 244, 0.2);
    }
    
    .form-control,
    .input-group-text {
        background-color: rgba(30, 41, 59, 0.8) !important;
        border-color: rgba(66, 133, 244, 0.2);
        color: #e2e8f0 !important;
    }
    
    .form-control:focus {
        background-color: rgba(30, 41, 59, 0.9) !important;
        border-color: rgba(66, 133, 244, 0.4);
        box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
    }
    
    .btn-light {
        background-color: rgba(30, 41, 59, 0.8);
        border-color: rgba(66, 133, 244, 0.2);
        color: #e2e8f0;
    }
    
    .btn-light:hover {
        background-color: rgba(30, 41, 59, 0.9);
        border-color: rgba(66, 133, 244, 0.4);
        color: #f8fafc;
    }
    
    .text-muted {
        color: #94a3b8 !important;
    }
}