:root { --primary: #4361ee; --secondary: #3f37c9; --success: #4bb543; --error: #ff4d4d; --text: #2b2d42; --bg-gradient: linear-gradient(135deg, #8543ee, #2c25a5); --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); --highlight: rgba(255, 255, 255, 0.1); } body { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; min-height: 100vh; margin: 0; padding: 40px 20px; display: flex; justify-content: center; align-items: center; color: var(--text); position: relative; overflow-x: hidden; background-color: #1a1a1a; background-image: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; } body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, transparent 40%), linear-gradient(-45deg, rgba(67,97,238,0.4) 0%, transparent 50%); pointer-events: none; z-index: 0; } /* Animated light streaks */ @keyframes lightStreak { 0% { transform: translateX(-100%) skewX(-45deg); opacity: 0; } 25% { opacity: 0.5; } 50% { opacity: 0.3; } 100% { transform: translateX(200%) skewX(-45deg); opacity: 0; } } body::after { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%); animation: lightStreak 6s infinite; pointer-events: none; z-index: 1; } @keyframes pulse { 0% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.5); opacity: 0.8; } 100% { transform: scale(1); opacity: 0.5; } } .container { position: relative; max-width: 480px; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 40px; border-radius: 24px; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 32px rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; overflow: hidden; --mouse-x: 0; --mouse-y: 0; } .container::after { content: ''; position: absolute; inset: 0; background: radial-gradient( circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1) 0%, transparent 25% ); opacity: 0; transition: opacity 0.3s; pointer-events: none; } .container:hover::after { opacity: 1; } .container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 50%); animation: shimmer 10s infinite linear; pointer-events: none; z-index: -1; } @keyframes shimmer { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .container:hover { transform: translateY(-8px); box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.25); } input, select { width: 100%; padding: 14px 16px; margin: 8px 0 20px 0; border: 2px solid transparent; border-radius: 12px; font-size: 1rem; background: rgba(255, 255, 255, 0.9); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } input:hover, select:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); } input:focus, select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15); transform: translateY(-2px); } button { background: var(--bg-gradient); color: white; padding: 16px; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600; width: 100%; cursor: pointer; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3); } button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4); } button:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2); } button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 300%; height: 300%; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%); transform: translate(-50%, -50%) scale(0); transition: transform 0.6s ease-out; } button:hover::before { transform: translate(-50%, -50%) scale(1); } h2 { color: var(--text); margin-bottom: 30px; text-align: center; font-size: 2rem; font-weight: 700; background: var(--bg-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: titlePop 0.5s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes titlePop { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } label { font-weight: 500; color: var(--text); display: block; margin-bottom: 8px; font-size: 0.95rem; transition: color 0.3s ease; } label:hover { color: var(--primary); } .result { margin-top: 30px; padding: 20px; background: rgba(75, 181, 67, 0.1); border-radius: 16px; font-size: 1.25rem; color: var(--success); font-weight: 600; text-align: center; min-height: 32px; opacity: 0; transform: scale(0.95); backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(75, 181, 67, 0.1); animation: resultPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; position: relative; overflow: hidden; } .result::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent ); animation: shine 3s infinite; } @keyframes shine { to { left: 100%; } } /* Confetti Animation */ .confetti { position: fixed; width: 10px; height: 10px; background: var(--confetti-color); opacity: 0; transform: translateY(0) rotate(var(--confetti-rotation)); left: var(--confetti-x); animation: confetti-fall 3s ease-in-out forwards; } @keyframes confetti-fall { 0% { opacity: 1; transform: translateY(-100vh) rotate(var(--confetti-rotation)); } 100% { opacity: 0; transform: translateY(100vh) rotate(calc(var(--confetti-rotation) + 360deg)); } } @keyframes resultPop { 0% { opacity: 0; transform: scale(0.8) translateY(20px); } 70% { transform: scale(1.05) translateY(-5px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } .result:empty { display: none; } .error { background: rgba(255, 77, 77, 0.1); color: var(--error); box-shadow: 0 4px 15px rgba(255, 77, 77, 0.1); } .spinner { display: none; margin: 0 auto 24px auto; width: 40px; height: 40px; border: 3px solid rgba(67, 97, 238, 0.1); border-top: 3px solid var(--primary); border-right: 3px solid var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; box-shadow: 0 0 15px rgba(67, 97, 238, 0.2); } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .tooltip { position: relative; display: inline-block; margin-left: 6px; cursor: help; transition: all 0.3s ease; } .tooltip:hover { transform: scale(1.1); color: var(--primary); } .tooltip .tooltiptext { visibility: hidden; width: 200px; background: rgba(43, 45, 66, 0.95); color: #fff; text-align: center; border-radius: 8px; padding: 10px 12px; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -100px; opacity: 0; font-size: 0.9rem; backdrop-filter: blur(4px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transform: translateY(10px) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; transform: translateY(0) scale(1); } .footer { margin-top: 40px; text-align: center; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.5px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } @media (max-width: 600px) { body { padding: 20px 15px; } .container { padding: 30px 20px; border-radius: 20px; } h2 { font-size: 1.75rem; } input, select, button { padding: 12px; } }