/* app/web/css/auth.css - Современные стили для аутентификации */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-out;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.auth-title {
    color: #2d3436;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #636e72;
    font-size: 16px;
    opacity: 0.8;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: #2d3436;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.auth-form .form-control.error {
    border-color: #ff7675;
}

.auth-form .error-text {
    color: #ff7675;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.auth-form .form-control.error + .error-text {
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.remember-me label {
    color: #636e72;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f2f6;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.auth-card.shake {
    animation: shake 0.5s ease-in-out;
}

/* Уведомления */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(150%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
}

.auth-notification.show {
    transform: translateX(0);
}

.auth-notification.success {
    border-left: 4px solid #00b894;
}

.auth-notification.error {
    border-left: 4px solid #ff7675;
}

.auth-notification i {
    font-size: 20px;
}

.auth-notification.success i {
    color: #00b894;
}

.auth-notification.error i {
    color: #ff7675;
}

/* Адаптивность */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .auth-card {
        background: rgba(30, 30, 40, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .auth-title,
    .auth-form label {
        color: #f5f5f5;
    }

    .auth-subtitle {
        color: #b0b0b0;
    }

    .auth-form .form-control {
        background: rgba(40, 40, 50, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
        color: #f5f5f5;
    }

    .auth-form .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }

    .auth-links {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}