.form-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.form-header img {
    height: 40px; 
}

.form-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 30px 20px; 
    min-height: 100vh;
    background-color: var(--cor-fundo-cinza);
}

.form-wrapper {
    width: 100%;
    max-width: 450px;
    background-color: #fff; 
    border-radius: 12px;
    box-shadow: var(--sombra-card);
    overflow: hidden; 
}

.form-illustration-panel {
    display: none;
}

.form-content-panel {
    width: 100%;
    padding: 30px;
}

.form-title {
    font-size: 28px; 
    font-weight: 700; 
    color: var(--cor-texto-principal);
    text-align: center; 
    margin-bottom: 25px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block; 
    font-size: 14px; 
    font-weight: 600;
    color: var(--cor-texto-principal); 
    margin-bottom: 8px;
}

.form-input {
    width: 100%; 
    height: 48px; 
    padding: 0 15px; 
    font-family: var(--fonte-principal);
    font-size: 16px; 
    background-color: var(--cor-fundo-pagina);
    border: 1px solid var(--cor-borda); 
    border-radius: 8px;
    color: var(--cor-texto-principal);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none; 
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); 
}

.form-submit-btn {
    width: 100%; 
    padding: 14px; 
    font-size: 16px;
    background-color: var(--cor-primaria); 
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit-btn:hover { 
    background-color: var(--cor-primaria-hover); 
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.form-link {
    font-size: 14px;
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover { text-decoration: underline; }

.form-footer-link {
    margin-top: 25px; 
    text-align: center; 
    font-size: 14px;
    color: var(--cor-texto-secundario);
}

.form-footer-link a {
    color: var(--cor-primaria); 
    font-weight: 700; 
    text-decoration: none;
}

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

.input-with-icon {
    position: relative;
    width: 100%;
}

.btn-toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--cor-texto-secundario);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.btn-toggle-pass:hover {
    opacity: 1;
    color: var(--cor-primaria);
}

.input-with-icon input[type="password"],
.input-with-icon input[type="text"] {
    padding-right: 45px; 
}

.error-msg {
    color: #ef4444; 
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.form-input.input-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

@media (min-width: 992px) {
    
    .form-wrapper {
        display: flex; 
        flex-direction: row; 
        max-width: 1000px; 
        min-height: 550px; 
    }

    .form-illustration-panel {
        display: flex; 
        flex-direction: column;
        justify-content: center;
        width: 50%;
        padding: 40px;
        color: #fff;
        position: relative;
            background-image: linear-gradient(
            135deg, 
            var(--cor-primaria),   
            var(--cor-primaria-hover)  
        );
    }

    .form-illustration-panel::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: url('../../../img/folha_branca.png') no-repeat center center;
        background-size: 50%;
        opacity: 0.1; 
        pointer-events: none;
    }

    .illustration-content {
        position: relative;
        z-index: 2;
    }
    
    .illustration-content h2 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .illustration-content p {
        font-size: 18px;
        opacity: 0.9;
        line-height: 1.6;
    }

    .form-content-panel {
        width: 50%;
        padding: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

