/* app/static/css/auth.css */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.auth-brand .logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.auth-brand .logo-circle i {
    width: 26px;
    height: 26px;
    stroke: white;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, white, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: var(--muted);
    text-align: center;
    margin-top: 6px;
    margin-bottom: 30px;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Forms layout inside pages when base page wraps content */
.form-card {
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6) !important;
    padding: 35px 30px !important;
}

.form-card .section-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-card .btn-primary {
    width: 100%;
    margin-top: 24px;
}

/* Landing Page Specific Styles */
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 20px 100px 20px;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 100%);
    z-index: -1;
    filter: blur(80px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulseSlow 3s infinite ease-in-out;
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.landing-section {
    padding: 80px 0;
}

.section-heading {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subheading {
    font-size: 1.1rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modules showcase grid */
.modules-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.module-feature-card {
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.module-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

/* Accent colors for module cards */
.calendar-feat {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.chores-feat {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.points-feat {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.rewards-feat {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}
.active-feat {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.secure-feat {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.module-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.module-feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Steps Section */
.steps-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.step-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.step-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Card */
.landing-cta {
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
}

.landing-cta h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.landing-cta p {
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes pulseSlow {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .landing-hero {
        padding: 50px 10px 60px 10px;
    }
    .section-heading {
        font-size: 1.8rem;
    }
}