/* admin/modules/core/templates/login.css - Стили для страницы логина */

/* === Основной контейнер логина === */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
}

/* === Логотип и заголовки === */
.auth-logo {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: glow 2s ease-in-out infinite alternate;
}

.auth-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 35px;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* === Форма авторизации === */
.auth-form {
    margin-top: 20px;
}

.auth-form-group {
    margin-bottom: 25px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.auth-form-group input[type="password"] {
    width: 100%;
    padding: 15px 18px;
    font-size: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.auth-form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.auth-form-group input[type="password"]::placeholder {
    color: var(--text-muted);
}

/* === Кнопка отправки === */
.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 51, 102, 0.3);
    filter: brightness(1.1);
}

.auth-submit-btn:active {
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* === Спиннер загрузки === */
.auth-loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* === Ошибки === */
.auth-error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #ff6b8a;
    font-size: 0.9rem;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

/* === Примечание о безопасности === */
.auth-security-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
    text-align: center;
    color: var(--text-secondary);
}

.auth-security-note::before {
    content: '🔒';
    margin-right: 8px;
}

/* === Обертка для инпута === */
.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper::after {
    content: '👁️';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.auth-input-wrapper:hover::after {
    opacity: 0.8;
}

/* === Анимации === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 51, 102, 0.8);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* === Адаптивность === */
@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 40px 30px;
    }
    
    .auth-logo {
        font-size: 1.8rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
}

/* === Интерактивные эффекты === */
.auth-container-interactive {
    transition: transform 0.1s ease;
}

/* === Переключатель темы для логина === */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.login-theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.login-theme-toggle .theme-icon {
    transition: transform 0.3s ease;
}

/* === Улучшения для светлой темы === */
body.light-theme .auth-container {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

body.light-theme .auth-container:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
}

body.light-theme .auth-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

body.light-theme .auth-security-note {
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.2);
}