/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ЛОГИНА ===== */
.login-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    background: var(--gradient-card);
    border-radius: 25px;
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.login-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--surface-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.2);
}

.form-input:invalid {
    border-color: var(--accent-color);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.btn-login {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1rem;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-3px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Уведомления */
.notification {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #f44336;
    color: #c62828;
}

[data-theme="dark"] .notification.error {
    background: linear-gradient(135deg, #311b1b 0%, #4a2222 100%);
    border-color: #d32f2f;
    color: #ff8a80;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Информационные карточки */
.login-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--surface-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.info-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.info-content a:hover {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Специфичные стили для страницы логина */
.btn-login {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: 2px solid transparent !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(126, 87, 194, 0.3) !important;
    margin-top: 20px !important;
}

.btn-login:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(126, 87, 194, 0.4) !important;
    background: var(--gradient-accent) !important;
}

/* Переопределяем стили из header.css для страницы логина */
.login-form .btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: 2px solid transparent !important;
}

.login-form .btn:hover {
    background: var(--gradient-accent) !important;
    color: white !important;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .login-main {
        padding: 30px 15px;
        align-items: flex-start;
        min-height: calc(100vh - 150px);
    }
    
    .login-container {
        padding: 35px 25px;
        margin-top: 20px;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    .form-input {
        padding: 14px 16px;
    }
    
    .btn-login {
        padding: 16px 25px;
    }
}