:root {
            --dark-bg: #121212;
            --primary-purple: #8A2BE2;
            --light-purple: #A076F9;
            --accent-purple: #6A0DAD;
            --gray-light: #E8E8E8;
            --gray-medium: #A0A0A0;
            --gray-dark: #1E1E24;
            --text-color: #F5F5F5;
            --gradient: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: var(--dark-bg);
            min-height: 100vh;
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            color: var(--text-color);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem;
            position: relative;
            overflow-x: hidden;
        }
        
        body::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.25) 0%, transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(106, 13, 173, 0.2) 0%, transparent 25%);
            z-index: -1;
        }
        
        .auth-container {
            width: 100%;
            max-width: 460px;
            animation: fadeIn 0.6s ease-out;
        }
        
        .auth-card {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
            overflow: hidden;
            transform: translateZ(0);
        }
        
        .auth-header {
            padding: 2.5rem 2rem 1rem;
            text-align: center;
            position: relative;
        }
        
       
        
        .logo {
            width: 80px;
            background: var(--gradient);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.2rem;
            overflow: hidden;
        }
        
        .logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .logo i {
            font-size: 1.8rem;
            color: white;
        }
        
        .auth-title {
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
            font-size: 1.8rem;
            letter-spacing: -0.5px;
        }
        
        .auth-subtitle {
            color: var(--gray-medium);
            margin-bottom: 0;
            font-size: 1rem;
            font-weight: 400;
        }
        
        .auth-body {
            padding: 1.5rem 2rem 2rem;
        }
        
        .form-floating {
            margin-bottom: 1.5rem;
            position: relative;
        }
        
        .form-control {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 12px;
            padding: 1rem 1.2rem;
            height: auto;
            transition: all 0.3s ease;
        }
        
        .form-control:focus {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: var(--light-purple);
            box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
            color: white;
        }
        
        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }
        
        label {
            color: var(--gray-light) !important;
            padding: 0.5rem 1.2rem;
            font-size: 0.95rem;
            font-weight: 500;
            background: transparent !important;
            transform-origin: left top;
        }
        
        .form-floating>.form-control:focus~label,
        .form-floating>.form-control:not(:placeholder-shown)~label,
        .form-floating>.form-control-plaintext~label {
            color: var(--light-purple) !important;
            transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
            background: transparent !important;
        }
        
        .input-icon {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-medium);
            z-index: 5;
        }
        
        .btn-auth {
            background: var(--gradient);
            border: none;
            color: white;
            padding: 1rem;
            border-radius: 12px;
            font-weight: 600;
            width: 100%;
            margin: 1rem 0 1.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
            position: relative;
            overflow: hidden;
        }
        
        .btn-auth::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: 0.5s;
        }
        
        .btn-auth:hover::before {
            left: 100%;
        }
        
        .btn-auth:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(138, 43, 226, 0.5);
        }
        
        .auth-footer {
            text-align: center;
            padding: 0 2rem 2rem;
        }
        
        .auth-link {
            color: var(--light-purple);
            text-decoration: none;
            transition: all 0.2s ease;
            font-weight: 500;
            position: relative;
        }
        
        .auth-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--light-purple);
            transition: width 0.3s ease;
        }
        
        .auth-link:hover {
            color: white;
        }
        
        .auth-link:hover::after {
            width: 100%;
        }
        
        .back-link {
            display: inline-flex;
            align-items: center;
            color: var(--gray-light);
            text-decoration: none;
            margin-bottom: 1.5rem;
            transition: color 0.2s ease;
            font-size: 0.9rem;
        }
        
        .back-link:hover {
            color: white;
        }
        
        .error-message {
            background-color: rgba(255, 72, 88, 0.15);
            border-left: 4px solid #ff4858;
            color: #ff6b7a;
            padding: 0.8rem 1rem;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
            animation: shake 0.5s ease-in-out;
        }
        
        .divider {
            display: flex;
            align-items: center;
            margin: 1.5rem 0;
            color: var(--gray-medium);
            font-size: 0.9rem;
        }
        
        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .divider::before {
            margin-right: 0.75rem;
        }
        
        .divider::after {
            margin-left: 0.75rem;
        }
        
        .password-hint {
            font-size: 0.8rem;
            color: var(--gray-medium);
            margin-top: 0.3rem;
            margin-left: 0.5rem;
        }
        
        /* Анимации */
        @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); }
        }
        
        /* Адаптивность */
        @media (max-width: 576px) {
            .auth-card {
                border-radius: 16px;
            }
            
            .auth-header, .auth-body {
                padding: 1.5rem;
            }
            
            .auth-footer {
                padding: 0 1.5rem 1.5rem;
            }
        }

               .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    height: auto;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23A0A0A0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--light-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
    color: white;
}

.form-select option {
    background-color: var(--gray-dark);
    color: white;
}

.form-floating>.form-select~label {
    color: var(--gray-light) !important;
    padding: 0.5rem 1.2rem;
    background: transparent !important;
}

.form-floating>.form-select:focus~label,
.form-floating>.form-select:not(:placeholder-shown)~label {
    color: var(--light-purple) !important;
    transform: scale(0.85) translateY(-0.9rem) translateX(0.15rem);
    background: transparent !important;
}