h2 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: rgb(115, 3, 3);
    text-align: center;
    font-size: 30px; /* Corregido de 'size' a 'font-size' */
}

body {
    background-image: url("../Fondo\ Login.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0; /* Asegura que no haya márgenes extraños */
}

.main-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background-color: rgba(222, 232, 244, 0.9);
    padding: 30px;
    width: 350px;
    border-radius: 60px; /* Reduje un poco el redondeado para que se vea más equilibrado */
    box-shadow: 0 10px 25px rgba(53, 0, 244, 0.559);
    
    /* ESTO ES LO QUE CENTRA TODO UNO DEBAJO DE OTRO */
    display: flex;
    flex-direction: column; /* Alinea en vertical */
    align-items: center;    /* Centra horizontalmente los elementos hijos */
    text-align: center;
}

/* El formulario debe ocupar el ancho completo para centrar los inputs */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

input {
    padding: 12px;
    border-radius: 5px;
    border: none; /* Añadí un borde suave para que se vean los campos */
    margin-bottom: 15px;    /* Más espacio entre campos */
    width: 80%;             /* Ancho controlado */
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #810d0d;
    color: white;
    cursor: pointer;
    font-weight: bold;
    width: 60%;             /* Botón un poco más ancho */
    transition: transform 0.2s;
}

button:hover {
    transform: scale(1.05); /* Efecto visual al pasar el mouse */
    background-color: #a11212;
}

.modulo-tasa {
    background-color: #1a1a3a; /* Azul oscuro */
    padding: 15px;
    margin: 10px 0;
    color: white;
    text-align: left;
}
.modulo-tasa label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}
.tasa-control input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: none;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.tasa-control button {
    background-color: #810d0d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}
.tasa-control button:hover {
    background-color: #a01212;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;     /* Centrado vertical */
    background-size: cover;
    background-position: center;
}