/* ============================================
   Landing Page Styles — Picast
   ============================================ */

/* --- Reset & Base --- */
.landing-page {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    color: #334155;
    background: #f8fafc;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.hero-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* --- Hero Info (Left) --- */
.hero-info {
    flex: 1;
    color: #fff;
}

.hero-brand {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 480px;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.hero-features-list li i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 1rem;
    flex-shrink: 0;
}

/* --- Hero Login Card (Right) --- */
.hero-login {
    flex: 0 0 380px;
    max-width: 380px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-card .login-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: 0.375rem;
}

.login-card .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: #334155;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-card .form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #fff;
    outline: none;
}

.login-card .form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.login-card .form-check-label {
    font-size: 0.875rem;
    color: #64748b;
}

.login-card .btn-login {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.login-card .btn-login:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.login-card .alert {
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.login-card .invalid-feedback {
    font-size: 0.8125rem;
}

/* --- Features Section --- */
.features-section {
    padding: 5rem 2rem;
    background: #fff;
}

.features-container {
    max-width: 1140px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.features-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.features-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Footer --- */
.landing-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.875rem;
}

/* --- Validation Errors (server-side) --- */
.login-card .is-invalid {
    border-color: #ef4444 !important;
}

.login-card .is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991.98px) {
    .hero-section {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 0;
    }

    .hero-info {
        text-align: center;
    }

    .hero-tagline {
        margin: 0 auto 2rem;
    }

    .hero-features-list {
        align-items: center;
    }

    .hero-brand {
        font-size: 2.5rem;
    }

    .hero-login {
        flex: 0 0 auto;
        width: 100%;
        max-width: 420px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hero-brand {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.0625rem;
    }

    .hero-features-list li {
        font-size: 0.9375rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .features-section {
        padding: 3rem 1.25rem;
    }

    .features-header h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-brand {
        font-size: 1.75rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
}
