* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: white;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

.login-btn {
    background: transparent;
    border: 1px solid #007bff;
    color: #007bff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #007bff;
    color: white;
}

.login-btn::before {
    content: "🔓";
    font-size: 12px;
}

/* Main Content */
.main-section {
    position: relative;
    min-height: calc(100vh - 80px);
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.content-left {
    max-width: 500px;
    justify-self: start;
}

.welcome-title {
    font-size: 48px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 40px;
    font-weight: 400;
}

.cpf-form {
    background: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    background: #f8f9fa;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
}

.form-input::placeholder {
    color: #adb5bd;
}

.continue-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.continue-btn:hover {
    background: #0056b3;
}

.recaptcha-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 16px;
    line-height: 1.4;
}

.recaptcha-text a {
    color: #007bff;
    text-decoration: none;
}

.recaptcha-text a:hover {
    text-decoration: underline;
}

/* Right Side Image */
.content-right {
    position: absolute;
    right: 0;
    top: 80px;
    bottom: 0;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
}

.hero-image {
    height: calc(100vh - 80px);
    width: auto;
    object-fit: cover;
    object-position: center top;
    max-width: none;
}

/* Footer */
footer {
    background: white;
    padding: 40px 0 20px;
    border-top: 1px solid #e9ecef;
    position: relative;
    z-index: 3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #007bff;
    color: white;
}

.footer-text {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 32px;
    text-align: justify;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 16px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.partner-logo {
    height: 40px;
}

.security-badges {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.security-badge {
    height: 50px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 12px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        gap: 16px;
        font-size: 14px;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 16px;
    }

    .content-left {
        justify-self: center;
    }

    .content-right {
        position: relative;
        width: 100%;
        height: 400px;
        top: 0;
    }

    .hero-image {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }

    .welcome-title {
        font-size: 36px;
    }

    .cpf-form {
        padding: 24px;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .security-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
