:root {
    --bg-color: #fafbfc;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: #f1f5f9;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --accent: #8b5cf6;
    --button-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: block; /* Removed flex to prevent nav centering */
    padding-top: 100px; /* Added padding to prevent overlap by fixed navbar */
    padding-bottom: 50px;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    filter: blur(45px); /* Reduced from 80px for significantly better GPU performance */
    z-index: -1;
    opacity: 0.4;
    animation: float 12s infinite ease-in-out alternate;
    will-change: transform; /* Hint to browser to use GPU */
    backface-visibility: hidden;
    pointer-events: none;
}

.shape1 {
    width: 600px; /* Increased size slightly to compensate for reduced blur */
    height: 600px;
    background: #6366f1;
    top: -150px;
    left: -150px;
    border-radius: 50%;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: #ec4899;
    bottom: -100px;
    right: -100px;
    border-radius: 50%;
    animation-delay: -3s;
}

.shape3 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    top: 40%;
    left: 40%;
    border-radius: 50%;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

/* Container & Animation */
.container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px); /* Reduced from 24px for better performance */
    -webkit-backdrop-filter: blur(12px);
    transform: translateZ(0); /* Force hardware acceleration */
    border: 1px solid var(--card-border);
    max-width: 420px;
    width: 100%;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: var(--button-gradient);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    position: relative;
}

.logo-circle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.input-group input:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* Button */
.btn-glow {
    width: 100%;
    padding: 16px;
    background: var(--button-gradient);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-glow::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: all 0.5s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

/* Footer */
.footer-text {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.footer-text a, .footer-text a:visited {
    color: #8b5cf6 !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-text a:hover {
    color: #6366f1 !important;
    text-decoration: underline;
}
