@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

/* Auth Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Dashboard Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.nav-link {
    display: block;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--surface);
    color: var(--text-primary);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.action-btn:hover {
    background: var(--surface);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   NEW LANDING PAGE STYLES (Stacked Layout)
   ========================================= */

/* General Container Fixes */
.landing-container {
    display: block;
    background: white;
}

/* Override flex */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* 1. HERO SECTION (Blue) */
.hero-section {
    background-color: #007bff;
    /* Bright Blue */
    background: linear-gradient(135deg, #007bff 0%, #0062cc 100%);
    padding: 6rem 0;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: #007bff;
}

/* Login Card inside Hero */
.hero-login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: #1e293b;
    text-align: center;
}

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

.login-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-group-minimal {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon-minimal {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.9rem;
}

.form-control-minimal {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #334155;
    transition: 0.3s;
}

.form-control-minimal:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-primary-full {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-full:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.login-footer-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

/* 2. FEATURES SECTION (White) */
.features-section {
    background: white;
    padding: 6rem 0;
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: #64748b;
}

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

.feature-item {
    padding: 2rem;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
}

.icon-blue {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.feature-item p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* 3. LGPD SECTION (Light Gray) */
.lgpd-section {
    background: #f1f5f9;
    padding: 5rem 0;
}

.lgpd-box {
    background: #e2e8f0;
    /* Slightly darker gray box */
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.lgpd-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.lgpd-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.lgpd-box p {
    color: #475569;
    margin-bottom: 2rem;
}

.lgpd-checks {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.check-item {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

/* 4. FOOTER/ACCESS SECTION (Dark) */
.footer-section {
    background: #1e293b;
    /* Dark Slate */
    padding: 5rem 0;
    color: white;
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: #94a3b8;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    color: #1e293b;
    padding: 3rem;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-header a {
    color: #007bff;
    font-weight: 700;
    font-size: 1.2rem;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.info-list {
    list-style: none;
    margin-top: 0.5rem;
    color: #475569;
}

.warning-text {
    font-size: 0.85rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    display: inline-block;
}


/* Responsive Adjustments */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

    .lgpd-checks {
        flex-direction: column;
        gap: 1rem;
    }
}