:root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --primary-light: #818cf8;
            --secondary: #8b5cf6;
            --accent: #ec4899;
            --success: #10b981;
            --danger: #ef4444;
            --dark: #0f172a;
            --gray: #64748b;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body { height: 100%; width: 100%; }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #2e1065 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* Animated Background */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.18) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
            animation: pulseBg 8s ease-in-out infinite;
        }
        body::after {
            content: '';
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
            animation: pulseBg 8s ease-in-out infinite reverse;
        }
        @keyframes pulseBg {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        /* Floating shapes */
        .shape {
            position: fixed;
            background: rgba(255,255,255,0.03);
            border-radius: 50%;
            pointer-events: none;
            animation: float 20s ease-in-out infinite;
            z-index: 0;
        }
        .shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; animation-delay: 0s; }
        .shape-2 { width: 200px; height: 200px; bottom: 50px; right: 50px; animation-delay: 5s; animation-duration: 25s; }
        .shape-3 { width: 150px; height: 150px; top: 40%; right: -50px; animation-delay: 2s; animation-duration: 18s; }
        .shape-4 { width: 250px; height: 250px; bottom: 20%; left: -80px; animation-delay: 7s; animation-duration: 22s; }

        @keyframes float {
            0%, 100% { transform: translateY(0px) translateX(0px); }
            25% { transform: translateY(-30px) translateX(20px); }
            50% { transform: translateY(20px) translateX(-15px); }
            75% { transform: translateY(-15px) translateX(-25px); }
        }

        /* Floating key icons */
        .floating-key {
            position: fixed;
            color: rgba(167, 139, 250, 0.15);
            font-size: 2rem;
            pointer-events: none;
            z-index: 0;
            animation: floatKey 15s ease-in-out infinite;
        }
        .floating-key:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; font-size: 2.5rem; }
        .floating-key:nth-child(2) { top: 70%; right: 15%; animation-delay: 3s; font-size: 1.8rem; }
        .floating-key:nth-child(3) { top: 30%; right: 8%; animation-delay: 6s; font-size: 2rem; }
        .floating-key:nth-child(4) { bottom: 20%; left: 15%; animation-delay: 9s; font-size: 2.2rem; }

        @keyframes floatKey {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
            25% { transform: translateY(-20px) rotate(10deg); opacity: 0.25; }
            50% { transform: translateY(-40px) rotate(-5deg); opacity: 0.2; }
            75% { transform: translateY(-20px) rotate(5deg); opacity: 0.3; }
        }

        .container {
            max-width: 500px;
            width: 100%;
            position: relative;
            z-index: 1;
        }

        .card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 32px;
            overflow: hidden;
            box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
            position: relative;
            animation: cardEnter 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
            background-size: 200% 100%;
            animation: gradientMove 3s linear infinite;
            z-index: 2;
        }

        @keyframes gradientMove {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }

        @keyframes cardEnter {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }

        /* ========== HEADER ========== */
        .header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
            padding: 2.5rem 2rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
                        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
            animation: rotateGlow 20s linear infinite;
            pointer-events: none;
        }

        @keyframes rotateGlow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .header-icon-wrapper {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.2rem;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 2;
            border: 2px solid rgba(255, 255, 255, 0.3);
            animation: iconPulse 2.5s ease-in-out infinite;
        }

        .header-icon-wrapper::before {
            content: '';
            position: absolute;
            inset: -8px;
            border-radius: 28px;
            background: rgba(255, 255, 255, 0.15);
            animation: ringPulse 2.5s ease-in-out infinite;
            z-index: -1;
        }

        @keyframes iconPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
            50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
        }

        @keyframes ringPulse {
            0%, 100% { opacity: 0.3; transform: scale(1); }
            50% { opacity: 0.1; transform: scale(1.15); }
        }

        .header-icon-wrapper i {
            font-size: 2rem;
            color: white;
            animation: keyShake 3s ease-in-out infinite;
        }

        @keyframes keyShake {
            0%, 100% { transform: rotate(0deg); }
            10% { transform: rotate(-15deg); }
            20% { transform: rotate(15deg); }
            30% { transform: rotate(-10deg); }
            40% { transform: rotate(10deg); }
            50% { transform: rotate(0deg); }
        }

        .header h1 {
            color: white;
            font-size: 1.6rem;
            font-weight: 900;
            margin-bottom: 0.5rem;
            letter-spacing: -0.5px;
            position: relative;
            z-index: 2;
            animation: fadeInUp 0.6s ease 0.2s both;
        }

        .header p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
            position: relative;
            z-index: 2;
            line-height: 1.5;
            animation: fadeInUp 0.6s ease 0.3s both;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ========== CONTENT ========== */
        .content {
            padding: 2rem;
        }

        /* ========== MESSAGES ========== */
        .message {
            padding: 0.9rem 1rem;
            border-radius: 14px;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            font-size: 0.85rem;
            animation: messageSlide 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            line-height: 1.5;
            font-weight: 500;
        }

        .message i {
            margin-top: 0.15rem;
            flex-shrink: 0;
            font-size: 1rem;
        }

        @keyframes messageSlide {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .error-message {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
            border-left: 4px solid var(--danger);
        }

        .success-message {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            color: #065f46;
            border-left: 4px solid var(--success);
        }

        /* ========== FORM ========== */
        .form-group {
            margin-bottom: 1.3rem;
            animation: fadeInUp 0.5s ease 0.4s both;
        }

        .form-group label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            margin-bottom: 0.6rem;
            color: #1e293b;
            font-size: 0.88rem;
        }

        .form-group label i { color: var(--primary); }

        .input-wrapper {
            position: relative;
            transition: transform 0.3s;
        }

        .input-wrapper i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
            font-size: 1rem;
            transition: all 0.3s;
            z-index: 1;
            pointer-events: none;
        }

        .form-group input {
            width: 100%;
            padding: 13px 16px 13px 46px;
            border: 1.5px solid #e2e8f0;
            border-radius: 14px;
            font-size: 0.95rem;
            font-family: 'Inter', sans-serif;
            transition: all 0.25s ease;
            background: #f8fafc;
            color: #0f172a;
            font-weight: 500;
        }

        .form-group input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            background: white;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
        }

        .input-wrapper:focus-within i { color: var(--primary); }

        .form-group input:not(:placeholder-shown) {
            border-color: #c7d2fe;
        }

        /* ========== BUTTON ========== */
        .btn-submit {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            border: none;
            border-radius: 14px;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.6rem;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
            animation: fadeInUp 0.5s ease 0.5s both;
            letter-spacing: 0.3px;
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
            transition: left 0.6s;
        }

        .btn-submit:hover::before { left: 100%; }

        .btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
        }

        .btn-submit:active { transform: translateY(0); }

        .btn-submit:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-submit i { transition: transform 0.3s; }
        .btn-submit:hover:not(:disabled) i { transform: translateX(3px); }

        /* ========== SPINNER ========== */
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ========== FOOTER ========== */
        .footer {
            text-align: center;
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e2e8f0;
            animation: fadeInUp 0.5s ease 0.6s both;
        }

        .footer a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.88rem;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: all 0.3s;
            padding: 0.4rem 0.8rem;
            border-radius: 10px;
        }

        .footer a:hover {
            color: var(--primary);
            background: rgba(99, 102, 241, 0.08);
            transform: translateX(-3px);
        }

        .footer a i { transition: transform 0.3s; }
        .footer a:hover i { transform: translateX(-3px); }

        /* ========== SUCCESS STATE ========== */
        .success-state {
            text-align: center;
            padding: 0.5rem 0;
            animation: fadeInUp 0.6s ease;
        }

        .success-state .success-icon {
            width: 90px;
            height: 90px;
            margin: 0 auto 1.2rem;
            background: linear-gradient(135deg, var(--success), #059669);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: white;
            box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35);
            animation: successPulse 2s ease-in-out infinite;
        }

        @keyframes successPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35); }
            50% { transform: scale(1.05); box-shadow: 0 16px 40px rgba(16, 185, 129, 0.5); }
        }

        .success-state h3 {
            font-size: 1.1rem;
            color: #065f46;
            margin-bottom: 0.4rem;
            font-weight: 800;
        }

        .success-state p {
            color: #64748b;
            font-size: 0.88rem;
            line-height: 1.6;
        }

        .info-tip {
            margin-top: 1.5rem;
            padding: 0.9rem 1rem;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
            border-radius: 14px;
            border-left: 3px solid var(--primary);
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            font-size: 0.8rem;
            color: #475569;
            line-height: 1.5;
        }

        .info-tip i {
            color: var(--primary);
            margin-top: 0.15rem;
            flex-shrink: 0;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 480px) {
            body { padding: 12px; }
            .card { border-radius: 24px; }
            .header { padding: 2rem 1.5rem 1.5rem; }
            .header h1 { font-size: 1.35rem; }
            .header p { font-size: 0.82rem; }
            .header-icon-wrapper { width: 70px; height: 70px; border-radius: 20px; }
            .header-icon-wrapper i { font-size: 1.7rem; }
            .content { padding: 1.5rem 1.4rem; }
            .form-group input { padding: 12px 14px 12px 44px; font-size: 0.9rem; }
            .input-wrapper i { left: 14px; font-size: 0.9rem; }
            .btn-submit { padding: 13px; font-size: 0.9rem; }
            .message { font-size: 0.8rem; padding: 0.8rem; }
        }

        @media (max-height: 700px) {
            .header { padding: 1.8rem 1.5rem 1.2rem; }
            .header-icon-wrapper { width: 64px; height: 64px; margin-bottom: 0.9rem; }
            .header-icon-wrapper i { font-size: 1.5rem; }
            .header h1 { font-size: 1.4rem; }
            .content { padding: 1.5rem; }
        }
