/* 13. login.html*/
   /* Основные стили для страницы авторизации */
    .login-wrapper {
        min-height: calc(100vh - 100px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .login-container {
        width: 100%;
        max-width: 480px;
        background: white;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: slideUp 0.6s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Заголовок */
    .login-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 40px 30px 30px;
        color: white;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .login-header::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    }

    .login-icon {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 36px;
        backdrop-filter: blur(10px);
        border: 3px solid rgba(255, 255, 255, 0.3);
        position: relative;
        z-index: 1;
    }

    .login-title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
        position: relative;
        z-index: 1;
    }

    .login-subtitle {
        font-size: 16px;
        opacity: 0.9;
        position: relative;
        z-index: 1;
    }

    /* Форма */
    .login-form {
        padding: 40px 30px;
    }

    /* Сетка для полей */
    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 30px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
        animation: slideIn 0.4s ease-out forwards;
        opacity: 0;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .form-group:nth-child(1) { animation-delay: 0.1s; }
    .form-group:nth-child(2) { animation-delay: 0.2s; }

    .form-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        color: #2d3748;
        font-size: 15px;
        margin-bottom: 5px;
    }

    .form-label i {
        color: #667eea;
        width: 20px;
        text-align: center;
    }

    .form-input {
        width: 100%;
        padding: 16px 20px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s;
        background: #f8fafc;
        font-family: inherit;
    }

    .form-input:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }

    .input-wrapper {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #718096;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.2s;
    }

    .password-toggle:hover {
        background: #f7fafc;
        color: #667eea;
    }

    /* Ошибки */
    .global-error {
        background: #fee;
        color: #c53030;
        padding: 16px 20px;
        border-radius: 12px;
        margin-bottom: 24px;
        border-left: 4px solid #c53030;
        display: flex;
        align-items: center;
        gap: 10px;
        animation: shake 0.5s ease-in-out;
    }

    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }

    .field-error {
        color: #e53e3e;
        font-size: 14px;
        margin-top: 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        animation: fadeIn 0.3s ease-out;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .form-group.has-error .form-input {
        border-color: #e53e3e;
        background: #fff5f5;
    }

    /* Кнопка входа */
    .login-btn {
        width: 100%;
        padding: 18px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        position: relative;
        overflow: hidden;
    }

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .login-btn:hover::before {
        left: 100%;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    /* Ссылки под формой */
    .form-links {
        margin-top: 30px;
        padding-top: 24px;
        border-top: 1px solid #e2e8f0;
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-link {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 8px;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
    }

    .form-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.3s;
    }

    .form-link:hover::before {
        left: 100%;
    }

    .form-link:hover {
        background: #f7fafc;
        color: #5a67d8;
        transform: translateX(5px);
    }

    .link-divider {
        height: 1px;
        background: #e2e8f0;
        margin: 10px 0;
    }

    /* Вспомогательные элементы */
    .remember-forgot {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 5px;
    }

    .remember-me {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #4a5568;
        cursor: pointer;
    }

    .forgot-password {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s;
    }

    .forgot-password:hover {
        color: #5a67d8;
        text-decoration: underline;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .login-container {
            max-width: 400px;
        }
        
        .login-form {
            padding: 30px 20px;
        }
        
        .login-header {
            padding: 30px 20px;
        }
        
        .login-title {
            font-size: 28px;
        }
    }

    @media (max-width: 480px) {
        .login-wrapper {
            padding: 20px 15px;
        }
        
        .login-form {
            padding: 25px 20px;
        }
        
        .login-header {
            padding: 25px 20px;
        }
        
        .form-links {
            flex-direction: column;
            gap: 12px;
        }
        
        .remember-forgot {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }

    /* Социальные кнопки (дополнительно) */
    .social-login {
        margin-top: 25px;
        text-align: center;
    }

    .social-divider {
        display: flex;
        align-items: center;
        margin: 20px 0;
        color: #718096;
        font-size: 14px;
    }

    .social-divider::before,
    .social-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .social-divider span {
        padding: 0 15px;
    }

    .social-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
    }

    .social-btn {
        flex: 1;
        padding: 14px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        background: white;
        color: #4a5568;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .social-btn:hover {
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-2px);
    }

    /* Дополнительная информация */
    .form-footer {
        text-align: center;
        margin-top: 30px;
        color: #718096;
        font-size: 14px;
    }