/* Tus estilos originales */
* {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    box-sizing: border-box;
}

body {
    background: #FFA500;
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

h1 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Estilo para el formulario centrado con ancho limitado */
form {
    width: 80%;            /* Ocupa el 80% del ancho de la pantalla */
    max-width: 500px;      /* No excederá los 500px */
    display: flex;
    flex-direction: column;
    align-items: stretch;  /* Hace que los elementos hijos ocupen todo el ancho disponible */
}

label {
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}

input,
select {
    width: calc(100% - 20px); /* Ajusta el ancho para que no llegue hasta el borde */
    padding: 10px;
    margin: 5px 0 15px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
    background: linear-gradient(#FFDA63, #FFB940);
    border: 0;
    color: brown;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: opacity 0.3s, transform 0.3s;
}

input[type="submit"]:hover {
    opacity: 1;
}

input[type="submit"]:active {
    transform: scale(0.95);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    form {
        width: 90%;
    }
}

@media (max-width: 480px) {
    form {
        width: 95%;
    }
}

/* Estilos adicionales míos, adaptados para complementar los tuyos */
.form-register {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form__titulo {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.contenedor-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contenedor-inputs p {
    margin: 0;
    font-weight: bold;
}

/* Ajustes responsivos para mis estilos adicionales */
@media (max-width: 768px) {
    .form-register {
        padding: 15px;
    }

    .contenedor-inputs {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .form-register {
        padding: 10px;
    }

    .contenedor-inputs {
        gap: 8px;
    }

    .form__titulo {
        font-size: 1.2em;
    }
}