body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #EBEBEB; /* Matches rectangle-9 background */
}

.rectangle-9 {
    width: auto;
    padding: 8px;
    background: #EBEBEB;
    border-color: #F7F6F600; /* Transparent border, effectively no border */
    border-width: 1px;
    border-style: solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.title {
    height: 25px;
    color: #444444;
    font-family: "Montserrat";
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.2px;
    text-align: center;
    margin-top: 25px;
}

.title-header {
    height: 50px;
    color: #444444;
    font-family: "Montserrat";
    font-weight: bold;
    font-size: 50px;
    line-height: 1.28;
    letter-spacing: -0.2px;
    text-align: center;
    white-space: nowrap;
}

.subtext {
    margin-top: 20px;
    height: 60px;
    color: #7A7A7A;
    font-family: "Source Sans 3";
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
    width: 527px; /* Match text input width */
}

.cuil {
    height: 35px;
    color: #7A7A7A;
    font-family: "Source Sans 3";
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    margin-bottom: 5px;
}

.invalid-input {
    color: red;
    font-family: 'Source Sans 3'; 
    font-weight: 400; 
    font-size: 14px; 
    line-height: 1.3;
    text-align: left;
    margin-top: 3px;
}

.forgot-password {
    width: 525px;
    height: 32px;
    color: #444444;
    font-family: "Source Sans 3";
    font-weight: 400;
    font-size: 15px;
    text-decoration: underline;
    line-height: 1.3;
    text-align: left;
    margin-top: 10px;
    cursor: pointer;
}

a {
    text-decoration: underline;
    cursor: pointer;
    color: #444444;
    font-family: "Source Sans 3";
    line-height: 1.3;
}

.button-14 {
    width: 527px;
    height: 60px;
    padding: 0px 10px;
    background: #444444;
    color: #FFFFFF;
    border-color: #444444;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    font-family: "Source Sans 3";
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    margin-top: 30px;
    display: flex; /* To align text and icon */
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.button-14:hover {
    background-color: #313131;
}

.register-text {
    width: 250px;
    color: #444444;
    font-family: "Source Sans 3";
    font-weight: 400;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 600px) {

    /*
    0. CORRECCIÓN DEL CONTENEDOR PRINCIPAL Y CUERPO (BODY)
    ------------------------------------------------------
    Anulamos el width: 1366px fijo y usamos anchos relativos.
    */
    body {
        /* Permitimos scroll en el body si es necesario */
        overflow-y: auto;
    }

    
    .rectangle-9 {
        /* Anulamos el ancho fijo (1366px) */
        width: 100%; 
        /* Aseguramos que el contenido tenga un poco de espacio en los bordes */
        padding: 20px 5%;
        /* No queremos que el contenido se centre verticalmente al inicio,
           permitiendo que el contenido fluya hacia abajo. */
        min-height: 100vh;
        justify-content: flex-start;
    }
    
    /*
    1. ARREGLO DE INPUTS Y CONTENEDORES DE FORMULARIO
    --------------------------------------------------
    Anulamos el width: 527px fijo en form-group, botones y links.
    */
    .form-group {
        /* Anulamos el width fijo (527px) */
        width: 100%; 
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .text-input {
        /* Mantenemos el 100% del contenedor */
        width: 100%;
        
        /* Ajustamos el padding para dispositivos más pequeños. 
        Mantenemos el desplazamiento del icono (48px) */
        padding: 0px 8px 0px 48px !important; 
        
        /* Reducimos ligeramente la altura si es necesario */
        height: 50px; 
        
        /* Reducimos el tamaño de fuente para mejor legibilidad móvil */
        font-size: 15px;
    }
    
    .button-14 {
        /* Anulamos el width fijo (527px) */
        width: 100%;
        height: 50px;
        font-size: 16px;
        margin-top: 20px;
    }
    
    .forgot-password {
        /* Anulamos el width fijo (525px) y aseguramos que el link use todo el espacio */
        width: 100%; 
        text-align: center; /* Centramos el texto para mejor lectura móvil */
    }
    
    .register-text {
        width: 100%;
    }

    /*
    2. ARREGLO DE TITULARES Y TEXTOS
    -----------------------------------
    Ajustamos el tamaño de los textos grandes.
    */
    .title-header {
        font-size: 36px;
        height: auto;
        line-height: 1.1;
    }
    
    .title {
        font-size: 22px;
        margin-top: 20px;
    }
    
    .subtext {
        height: auto;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    

    /*
    3. ARREGLO DE ICONOS
    -----------------------------------
    Aseguramos que el icono dentro del input se posicione correctamente
    ajustando la posición vertical ya que la altura del input cambió.
    */
    .icon-wrapper-input {
        left: 15px; /* Ligeramente más cerca del borde */
       	transform: translateY(-15%); 
    }
    
    /*
    4. ARREGLO DEL ÍCONO DE CONTRASEÑA (PASSWORD TOGGLE)
    -----------------------------------
    Aseguramos que el ojo esté bien centrado en el input.
    */
    .password-icon {
        right: 4%; 
        transform: translateY(-10%); 
    }
    
    /*
    5. ARREGLO DE SELECTORES (input-select y select-format)
    -----------------------------------
    Forzamos a que ocupen todo el ancho disponible en la fila.
    */
    .input-select {
        /* Deshabilitamos el max-width fijo si existía */
        max-width: none; 
        width: 100%;
        margin: 10px 0; /* Agregamos margen vertical para separar elementos */
    }
    
    .select-format {
        width: 100%;
        box-sizing: border-box;
    }
    #loading-spinner {
        padding-top: 0px !important;
    }

}
