/* Стили для страницы авторизации */

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 5% 15%, rgba(110, 86, 247, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 95% 25%, rgba(0, 229, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 25% 65%, rgba(0, 245, 180, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(255, 61, 154, 0.12) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundPulse 15s infinite alternate ease-in-out;
}

@keyframes backgroundPulse {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

.login-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50Z' fill='none' stroke='rgba(110, 86, 247, 0.05)' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(0, 229, 255, 0.05)' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='20' height='20' fill='none' stroke='rgba(0, 245, 180, 0.05)' stroke-width='1' rx='5' ry='5'/%3E%3C/svg%3E");
    background-position: 
        calc(10% + 10vw) calc(20% + 5vh),
        calc(80% - 5vw) calc(15% + 10vh),
        calc(30% + 15vw) calc(70% - 5vh);
    background-repeat: no-repeat;
    background-size: 
        20vmin 20vmin,
        15vmin 15vmin,
        12vmin 12vmin;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.2);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.login-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(110, 86, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo-container {
    justify-content: center;
    margin-bottom: 15px;
}

.login-header .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 15px rgba(110, 86, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.login-header .logo-text {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.login-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-lighter);
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .login-header .logo-text {
        font-size: 20px;
    }
}

/* Добавляем плавающие векторные элементы */
.login-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='15,0 30,15 15,30 0,15' fill='none' stroke='rgba(110, 86, 247, 0.07)' stroke-width='1'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='rgba(0, 229, 255, 0.07)' stroke-width='1'/%3E%3C/svg%3E");
    background-position: 
        calc(100% + 50px) calc(0% - 30px),
        calc(0% - 30px) calc(100% + 20px);
    background-repeat: no-repeat;
    background-size: 
        80px 80px,
        60px 60px;
    z-index: -1;
    animation: floatingElements 15s infinite ease-in-out;
}

@keyframes floatingElements {
    0% { 
        background-position: 
            calc(100% + 50px) calc(0% - 30px),
            calc(0% - 30px) calc(100% + 20px);
    }
    50% { 
        background-position: 
            calc(100% + 30px) calc(0% - 10px),
            calc(0% - 10px) calc(100% + 40px);
    }
    100% { 
        background-position: 
            calc(100% + 50px) calc(0% - 30px),
            calc(0% - 30px) calc(100% + 20px);
    }
}

/* Стили для модального окна 2FA */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close-modal {
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Кнопка подтверждения 2FA */
#verifyTwoFactorBtn {
    margin-top: 15px;
    width: 100%;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-width: 340px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
} 