body, html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #3a0701;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Alineación vertical */
}

.form-box {
    width: 300px;
    padding: 40px;
    background: #3a0701;
    text-align: center;
    /* Elimina position: absolute; */
}

/* Elimina la propiedad height: 100vh; del contenedor .container */

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Elimina height: 100vh; */
}


 /* Adjust for smaller screens */
 @media (max-width: 768px) {
    .form-container {
        width: 80%;
    }
}

.form-title {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
}

.form-box input[type="text"], .form-box input[type="password"], .form-box button[type="submit"] {
    border: 0;
    background: #631a10;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #8b2113;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
}

.form-box input[type="text"]:focus, .form-box input[type="password"]:focus {
    width: 280px;
    border-color: #8b2113;
}

.form-box button[type="submit"] {
    border: 0;
    background: #8b2113;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #8b2113;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

.form-box button[type="submit"]:hover {
    background: none;
}