body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(-45deg, #CFE7F1, #D8EBF1, #A0C8D6, #A6D09C);
    background-size: 400% 400%;
    animation: gradient 15s ease-in-out infinite;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #333;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-content {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    max-width: 960px;
    width: 90%;
    overflow: hidden; /* Garante que os filhos com cantos arredondados fiquem contidos */
}

.left-agile {
    flex: 1;
    min-width: 300px; /* Largura mínima para o conteúdo da imagem */
    background: url('<?php echo base_url('assets/img/Capa-forms-sue.png') ?>') no-repeat center center;
    background-size: cover;
}

.right-w3 {
    flex: 1;
    padding: 40px;
    min-width: 300px; /* Largura mínima para o formulário */
}

.titulodossie {
    text-transform: uppercase;
    color: #fff;
    font-size: clamp(24px, 5vw, 40px);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.sap_tabs {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Importante para o padding não aumentar a largura */
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.alert-spn {
    color: #dc3545;
    font-size: 12px;
    position: absolute;
    bottom: -18px;
    left: 0;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

#loading {
    display: none;
    text-align: center;
    margin-top: 15px;
    color: #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .left-agile {
        min-height: 250px; /* Altura para a imagem em telas menores */
    }

    .right-w3 {
        padding: 30px;
    }
}