/* Премиальный дизайн для страниц авторизации */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    margin: 1rem;
}

/* Декоративные круги на фоне */
.auth-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
}

/* Карточка со стеклянным эффектом */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 55px rgba(0, 0, 0, 0.15);
}

/* Шапка карточки */
.auth-header-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header-premium::before {
    content: '✨';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    right: -20px;
    top: -20px;
    transform: rotate(15deg);
}

.auth-header-premium h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header-premium p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* Иконка */
.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Тело карточки */
.auth-body-premium {
    padding: 2.5rem;
}

/* Поля ввода премиум */
.input-premium {
    border: 2px solid #e0e7ff;
    border-radius: 20px;
    padding: 12px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.input-premium:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.input-premium.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Лейблы */
.label-premium {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

/* Кнопка премиум */
.btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Ошибки */
.errorlist-premium {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.errorlist-premium li {
    color: #ef4444;
    font-size: 0.85rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 15px;
    margin-top: 5px;
    border-left: 3px solid #ef4444;
}

/* Help text */
.help-text-premium {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 6px;
}

/* Ссылки */
.link-premium {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.link-premium:hover {
    color: #764ba2;
}

.link-premium::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.link-premium:hover::after {
    width: 100%;
}

/* Адаптив */
@media (max-width: 768px) {
    .auth-body-premium {
        padding: 1.5rem;
    }

    .auth-header-premium {
        padding: 1.5rem;
    }

    .auth-header-premium h3 {
        font-size: 1.4rem;
    }

    .auth-icon {
        font-size: 3rem;
    }
}

/* Глобальные уведомления об ошибках */
.global-errors {
    position: sticky;
    top: 20px;
    z-index: 100;
}

.error-toast {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.error-toast strong {
    color: #991b1b;
    font-weight: 600;
}

.error-toast div {
    color: #7f1d1d;
    font-size: 0.9rem;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Авто-фокус на первое поле с ошибкой */
.input-premium.is-invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}