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

body {
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Lado Esquerdo - Imagem */
.image-side {
    flex: 1;
    background-color: #411c59; /* Pink profundo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lado Direito - Formulário */
.form-side {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.form-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Styling */
#FormCadastro {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent; /* Prepare for error border */
}

.input-group input:focus {
    box-shadow: 0 0 0 2px #411c59;
}

.input-group input::placeholder {
    color: #aaa;
}

/* Error Styles from Reference (Adapted) */
#FormCadastro input._error {
    border-color: red !important;
    background-color: #fff0f0;
}

#FormCadastro div._error {
    text-align: right;
    font-size: 0.75rem;
    /* text-transform: uppercase; */ /* Optional, kept cleaner without uppercase for longer messages */
    margin-top: 5px;
    color: #e53935;
    font-weight: 500;
}

.btn-primary {
    background-color: #411c59;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 100%; /* Ensure full width */
}

.btn-primary:hover {
    background-color: #411c59;
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

.form-footer a {
    color: #411c59;
    text-decoration: none;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
    }

    .container {
        height: auto;
        flex-direction: column-reverse; 
    }

    .image-side {
        height: 200px;
        flex: none;
    }

    .form-side {
        flex: auto;
        padding: 1.5rem;
    }
}
