/* ==========================================================================
   FUND FLOW - STILE GLOBALE
   Tema dark premium con glassmorphism
   Ultimo aggiornamento: Marzo 2026
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: 5rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 1000;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    font-size: 1.75rem;
    color: #60a5fa;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-link {
    color: #cbd5e1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: white;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 10rem 0 6rem;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #60a5fa;
}

.hero-text p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 34rem;
    margin-bottom: 2.5rem;
}

.hero-img img {
    width: 100%;
    max-width: 750px;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: perspective(1200px) rotateY(6deg);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features {
    padding: 8rem 0;
    background: rgba(15, 23, 42, 0.35);
}

.features h2 {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 5rem;
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    transition: all 0.35s ease;
}

.card:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.45);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card p {
    color: #cbd5e1;
    font-size: 1rem;
}

/* Icon colors */
.balance-icon    { background: #2563eb; }
.stock-icon      { background: #22c55e; }
.transaction-icon{ background: #8b5cf6; }
.investment-icon { background: #f59e0b; }
.expense-icon    { background: #c026d3; }
.salary-icon     { background: #14b8a6; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
    text-align: center;
    padding: 9rem 1.5rem;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.btn-white {
    background: white;
    color: #2563eb;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    text-align: center;
    padding: 4rem 1.5rem 2.5rem;
    color: #94a3b8;
    font-size: 0.9375rem;
}

/* ==========================================================================
   AUTH PAGES (Login & Signup)
   ========================================================================== */

.login-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-container {
    background: rgba(30, 41, 59, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1.25rem;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 26rem;
    box-shadow: 0 25px 70px -20px rgba(0,0,0,0.65);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #e2e8f0;
}

.back-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.25rem;
    color: #60a5fa;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.auth-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0 2.5rem;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(51, 65, 85, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.625rem;
    color: white;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.form-input::placeholder {
    color: #64748b;
}

input[type="date"] {
    color-scheme: dark;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #cbd5e1;
}

.eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    border: none;
    border-radius: 0.625rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.75rem;
}

.btn-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.signup-link-a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
}

.signup-link-a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        max-width: 42rem;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .features h2,
    .cta h2,
    .auth-title {
        font-size: 2.25rem;
    }
    .login-container {
        padding: 2rem 1.5rem;
    }
}