body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    border-color: #ca3227;
    box-shadow: 0 0 4px rgba(55, 39, 202, 0.3);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #870000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-login:hover {
    background-color: #870000;
    transform: translateY(-2px);
}


#errorDatos {
    margin-top: 20px;
    padding: 15px;
    background-color: #fdeaea;
    color: #a94442;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#errorDatos button {
    margin-top: 10px;
    background-color: transparent;
    border: none;
    color: #870000;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

#errorDatos button:hover {
    color: #8c3d3d;
}

.container {
    width: 100%;
    max-width: 400px;
}
.password-container {
    position: relative;
    width: 100%;
}
.password-container input {
    width: 100%;
    padding-right: 40px;
}
.password-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}
.password-container button img {
    width: 24px;
    height: 24px;
}