* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #8A2BE2;
            --secondary-color: #4A00E0;
            --accent-color: #00FFFF;
            --accent-color2: #FF00FF;
            --dark-bg: #0a0a0f;
            --card-bg: rgba(30, 30, 45, 0.85);
            --text-color: #ffffff;
            --text-secondary: #b0b0c0;
            --input-bg: rgba(255, 255, 255, 0.08);
            --input-border: rgba(255, 255, 255, 0.15);
            --success-color: #00ff88;
            --error-color: #ff4757;
            --warning-color: #ffa502;
        }

        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

        html {
            scroll-behavior: smooth;
        }

        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: var(--dark-bg);
            color: var(--text-color);
            overflow-x: hidden;
            position: relative;
            padding: 10px;
        }

        /* Enhanced Background Effects */
        .gradient-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -3;
            background: 
                radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.6) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(74, 0, 224, 0.5) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 255, 255, 0.3) 0%, transparent 50%);
            animation: gradientShift 20s ease-in-out infinite;
        }

        @keyframes gradientShift {
            0%, 100% { filter: hue-rotate(0deg) blur(30px); }
            50% { filter: hue-rotate(60deg) blur(40px); }
        }

        .moving-gradient {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: 
                conic-gradient(from 0deg, transparent, rgba(138, 43, 226, 0.15), transparent 120deg),
                conic-gradient(from 120deg, transparent, rgba(0, 255, 255, 0.1), transparent 240deg),
                conic-gradient(from 240deg, transparent, rgba(255, 0, 255, 0.12), transparent);
            animation: rotateGradient 30s linear infinite;
            z-index: -2;
        }

        @keyframes rotateGradient {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -1;
            animation: gridMove 25s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(40px, 40px); }
        }

        /* Enhanced Floating Particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .particle:nth-child(odd) {
            background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent);
            animation: float1 12s infinite ease-in-out;
        }

        .particle:nth-child(even) {
            background: radial-gradient(circle, rgba(255, 0, 255, 0.6), transparent);
            animation: float2 15s infinite ease-in-out;
        }

        @keyframes float1 {
            0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
            25% { transform: translate(30px, -50px) scale(1.2) rotate(90deg); opacity: 1; }
            50% { transform: translate(-20px, -80px) scale(0.8) rotate(180deg); opacity: 0.5; }
            75% { transform: translate(-40px, -30px) scale(1.1) rotate(270deg); opacity: 0.8; }
        }

        @keyframes float2 {
            0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.6; }
            33% { transform: translate(-40px, -60px) scale(1.3) rotate(120deg); opacity: 0.9; }
            66% { transform: translate(50px, -90px) scale(0.9) rotate(240deg); opacity: 0.4; }
        }

        /* Enhanced Container */
        .container {
            position: relative;
            width: 100%;
            max-width: 440px;
            padding: 45px 35px;
            background: var(--card-bg);
            border-radius: 25px;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 25px 50px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            z-index: 10;
            overflow: hidden;
            animation: containerEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            margin: 20px;
        }

        @keyframes containerEntrance {
            0% {
                opacity: 0;
                transform: perspective(1000px) rotateX(20deg) translateY(100px) scale(0.8);
            }
            100% {
                opacity: 1;
                transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
            }
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: conic-gradient(from 0deg, 
                rgba(138, 43, 226, 0.4), 
                rgba(0, 255, 255, 0.3), 
                rgba(255, 0, 255, 0.4), 
                rgba(138, 43, 226, 0.4));
            border-radius: 25px;
            padding: 2px;
            z-index: -1;
            animation: borderRotate 10s linear infinite;
        }

        @keyframes borderRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .container::after {
            content: '';
            position: absolute;
            inset: 2px;
            background: var(--card-bg);
            border-radius: 23px;
            z-index: -1;
        }

        /* Enhanced Logo Section */
        .logo {
            display: flex;
            justify-content: center;
            margin-bottom: 35px;
            position: relative;
        }

        .logo-container {
            position: relative;
            width: 80px;
            height: 80px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .logo-glow {
            position: absolute;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: radial-gradient(circle,
                rgba(0, 255, 255, 0.6) 0%,
                rgba(138, 43, 226, 0.4) 40%,
                transparent 70%);
            filter: blur(20px);
            animation: logoGlow 3s infinite ease-in-out;
            z-index: -1;
        }

        @keyframes logoGlow {
            0%, 100% { 
                opacity: 0.6; 
                transform: scale(1) rotate(0deg); 
            }
            50% { 
                opacity: 1; 
                transform: scale(1.2) rotate(180deg); 
            }
        }

        .logo-rings {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .ring {
            position: absolute;
            border: 2px solid;
            border-radius: 50%;
            border-color: transparent;
        }

        .ring:nth-child(1) {
            width: 100%;
            height: 100%;
            border-top-color: var(--accent-color);
            border-right-color: var(--accent-color2);
            animation: spin 4s linear infinite;
        }

        .ring:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-bottom-color: var(--primary-color);
            border-left-color: var(--secondary-color);
            animation: spin 6s linear infinite reverse;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .logo-icon {
            width: 45px;
            height: 45px;
            z-index: 2;
            color: var(--accent-color);
            filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
            animation: iconPulse 2.5s infinite ease-in-out;
        }

        @keyframes iconPulse {
            0%, 100% { 
                transform: scale(1);
                filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
            }
            50% { 
                transform: scale(1.1);
                filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
            }
        }

        /* Enhanced Title */
        h1 {
            text-align: center;
            margin-bottom: 35px;
            font-weight: 600;
            font-size: 28px;
            letter-spacing: 1px;
            background: linear-gradient(135deg, #fff 0%, var(--accent-color) 50%, var(--accent-color2) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
            animation: titleEntrance 1s ease-out 0.5s both;
        }

        @keyframes titleEntrance {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        h1::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -8px;
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
            transform: translateX(-50%);
            border-radius: 1px;
        }

        /* Enhanced Form */
        form {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .input-group {
            position: relative;
            animation: inputEntrance 0.8s ease-out both;
        }

        .input-group:nth-child(1) { animation-delay: 0.7s; }
        .input-group:nth-child(2) { animation-delay: 0.9s; }

        @keyframes inputEntrance {
            0% {
                opacity: 0;
                transform: translateX(50px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .input-group label {
            position: absolute;
            top: 18px;
            right: 50px;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            color: var(--text-secondary);
            font-size: 15px;
            font-weight: 400;
        }

        .input-group input {
            width: 100%;
            padding: 18px 50px 18px 20px;
            border: 1px solid var(--input-border);
            background: var(--input-bg);
            border-radius: 15px;
            outline: none;
            color: var(--text-color);
            font-size: 16px;
            font-weight: 400;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            backdrop-filter: blur(10px);
        }

        .input-group input:focus {
            border-color: var(--accent-color);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 
                0 0 20px rgba(0, 255, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .input-group input:focus + label,
        .input-group input:valid + label {
            top: -12px;
            right: 20px;
            background: linear-gradient(90deg, var(--card-bg), var(--card-bg));
            padding: 0 12px;
            font-size: 13px;
            color: var(--accent-color);
            font-weight: 500;
        }

        .input-group .icon {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            transition: all 0.3s ease;
            font-size: 18px;
        }

        .input-group input:focus ~ .icon {
            color: var(--accent-color);
            filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
            transform: translateY(-50%) scale(1.1);
        }

        /* Enhanced Options */
        .options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 10px;
            font-size: 14px;
            animation: optionsEntrance 0.8s ease-out 1.1s both;
        }

        @keyframes optionsEntrance {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .remember {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
        }

        .remember input[type="checkbox"] {
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--input-border);
            border-radius: 6px;
            background: var(--input-bg);
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }

        .remember input[type="checkbox"]:checked {
            background: linear-gradient(45deg, var(--accent-color), var(--accent-color2));
            border-color: var(--accent-color);
            transform: scale(1.1);
        }

        .remember input[type="checkbox"]:checked::before {
            content: "✓";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 12px;
            font-weight: bold;
        }

        .forgot-password {
            color: var(--accent-color);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            font-weight: 500;
        }

        .forgot-password::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-color), var(--accent-color2));
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s ease;
            border-radius: 1px;
        }

        .forgot-password:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        .forgot-password:hover {
            color: var(--accent-color2);
            filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
        }

        /* Enhanced Button */
        .login-btn {
            position: relative;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--primary-color));
            background-size: 200% 200%;
            color: white;
            border: none;
            padding: 18px 30px;
            border-radius: 15px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 25px;
            overflow: hidden;
            z-index: 1;
            animation: buttonEntrance 0.8s ease-out 1.3s both;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        @keyframes buttonEntrance {
            0% {
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .login-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.3), 
                transparent);
            transition: 0.6s;
            z-index: -1;
        }

        .login-btn:hover {
            background-position: 100% 0;
            transform: translateY(-3px) scale(1.02);
            box-shadow: 
                0 15px 35px rgba(138, 43, 226, 0.5),
                0 5px 15px rgba(0, 255, 255, 0.3);
            letter-spacing: 1px;
        }

        .login-btn:hover::before {
            left: 100%;
        }

        .login-btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        .btn-text {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .btn-icon {
            transition: transform 0.3s ease;
            font-size: 18px;
        }

        .login-btn:hover .btn-icon {
            transform: translateX(5px);
        }

        /* Enhanced Separator */
        .separator {
            display: flex;
            align-items: center;
            gap: 20px;
            margin: 30px 0;
            animation: separatorEntrance 0.8s ease-out 1.5s both;
        }

        @keyframes separatorEntrance {
            0% {
                opacity: 0;
                transform: scaleX(0);
            }
            100% {
                opacity: 1;
                transform: scaleX(1);
            }
        }

        .separator hr {
            flex: 1;
            border: none;
            height: 1px;
            background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent);
        }

        .separator span {
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 500;
            padding: 0 5px;
        }

        /* Enhanced Social Buttons */
        .social-logins {
            display: flex;
            justify-content: center;
            gap: 20px;
            animation: socialEntrance 0.8s ease-out 1.7s both;
        }

        @keyframes socialEntrance {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .social-btn {
            width: 55px;
            height: 55px;
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--input-border);
            background: var(--input-bg);
            color: var(--text-color);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .social-btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            border-color: var(--accent-color);
            background: rgba(255, 255, 255, 0.15);
        }

        .social-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: 0.5s;
        }

        .social-btn:hover::before {
            left: 100%;
        }

        .social-btn svg {
            width: 22px;
            height: 22px;
            transition: all 0.3s ease;
        }

        .social-btn:hover svg {
            filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                margin: 10px;
                padding: 35px 25px;
                max-width: 95%;
            }
            
            h1 {
                font-size: 24px;
                margin-bottom: 30px;
            }
            
            .logo-container {
                width: 70px;
                height: 70px;
            }
            
            .logo-icon {
                width: 40px;
                height: 40px;
            }
            
            .input-group input {
                padding: 16px 45px 16px 18px;
                font-size: 15px;
            }
            
            .login-btn {
                padding: 16px 25px;
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 5px;
            }
            
            .container {
                margin: 5px;
                padding: 30px 20px;
                border-radius: 20px;
            }
            
            h1 {
                font-size: 22px;
                margin-bottom: 25px;
            }
            
            .logo-container {
                width: 60px;
                height: 60px;
                margin-bottom: 20px;
            }
            
            .logo-icon {
                width: 35px;
                height: 35px;
            }
            
            .input-group {
                margin-bottom: 20px;
            }
            
            .input-group input {
                padding: 15px 40px 15px 15px;
                font-size: 14px;
            }
            
            .input-group .icon {
                right: 15px;
                font-size: 16px;
            }
            
            .options {
                font-size: 13px;
                gap: 10px;
            }
            
            .login-btn {
                padding: 15px 20px;
                font-size: 15px;
                margin-top: 20px;
            }
            
            .social-logins {
                gap: 15px;
            }
            
            .social-btn {
                width: 50px;
                height: 50px;
            }
            
            .social-btn svg {
                width: 20px;
                height: 20px;
            }
        }

        @media (max-width: 320px) {
            .container {
                padding: 25px 15px;
            }
            
            form {
                gap: 20px;
            }
            
            .options {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
        }

        /* Loading Animation */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .loading .btn-text::after {
            content: '';
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid #fff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        /* Success/Error States */
        .success {
            border-color: var(--success-color) !important;
            box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
        }

        .error {
            border-color: var(--error-color) !important;
            box-shadow: 0 0 15px rgba(255, 71, 87, 0.3) !important;
        }