Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 3 additions & 23 deletions src/components/ui/AuthCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,32 +73,21 @@ const AuthCard = ({
<AnimatePresence mode="wait" onExitComplete={onAnimationComplete}>
{isVisible && (
<motion.div
className="fixed inset-0 z-50 flex items-center justify-center"
className="fixed inset-0 z-50 flex items-center justify-center p-4"
variants={backdropVariants}
initial="hidden"
animate="visible"
exit="exit"
style={{
position: 'fixed',
top: 0,
left: 0,
right: 0,
bottom: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
padding: '1rem'
}}
>
{/* Backdrop with blur effect */}
<motion.div
className="absolute inset-0 bg-black/60 backdrop-blur-md"
variants={backdropVariants}
/>

{/* Perfectly Centered Auth Card */}
{/* Centered Auth Card */}
<motion.div
className="relative w-full max-w-md mx-auto"
className="relative w-full max-w-md"
variants={cardVariants}
initial="hidden"
animate={isAuthenticating ? "authenticating" : "visible"}
Expand All @@ -108,15 +97,6 @@ const AuthCard = ({
onAnimationComplete()
}
}}
style={{
position: 'relative',
width: '100%',
maxWidth: '28rem',
margin: '0 auto',
transform: 'translate(-50%, -50%)',
left: '50%',
top: '50%'
}}
>
{/* Card Container */}
<div className="relative glassmorphism rounded-2xl p-8 shadow-2xl">
Expand Down