:root {
    --fuentePrincipal: 'Montserrat', sans-serif;
    --rojopuro: red;
    --blanco: #fff;
    --negro: #000;
    --naranja: #FF8100;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--fuentePrincipal);
}

html{
    box-sizing: border-box;
    font-size: 62.5%;
    height: 100%;
}

*, *:before, *:after{
    box-sizing: inherit;
}

body{
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
}

.centrado{
    display: flex;
    justify-content: center;
}
  
.contenedor__login {
    background-image: url(../img/fondoguardia.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login */
.login{
    background-color: rgba(255, 255, 255, 0.5); /* Ajusta el último valor (0.5) para la opacidad deseada */
    border-radius: 5px;
    margin: 0 auto;
    max-width: 90%;
    height: 55rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .login{
        width: 60rem;
    }
}

.login__logo img{
    margin: 0 auto;
    max-width: 25rem;
}

.login__error{
    background-color: var(--rojopuro);
    color: var(--blanco);
}

.login__titulo{
    text-align: center;
}

.login__error{
    padding: 1rem;
    border-radius: 3px;
}

/* Formulario */
.formulario__fieldset{
    background-color: var(--blanco);
    margin-top: 1.5rem;
    border-radius: 5px;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 1.5rem;
}

.formulario__fieldset legend{
    position: relative;
    top: 5rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5rem;
}

.formulario__campo{
    display: flex;
    flex-direction: column;
    margin-top: 1.3rem;
}

.formulario__campo label{
    margin-bottom: .5rem;
    font-weight: 500;
}

.formulario__campo input:not([type="submit"]),
textarea,
select{
    padding: .7rem; 
    width: 100%;
    border-radius: 3px;
    font-weight: 500;
    border: 1px solid var(--negro);
}

.boton{
    font-weight: bold;
    text-decoration: none;
    padding: 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 1.5rem 0 1.5rem 0;
}

.boton-naranja{
    background-color: var(--naranja);
    color: var(--blanco);
    transition: background-color 0.4s ease, color 0.3s ease;
}

.boton-naranja:hover{
    background-color: var(--blanco);
    color: var(--negro);
}

/* Estilos para el icono de ojo */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 80%;
    right: 10px;
    transform: translateY(-80%);
    cursor: pointer;
    color: var(--plomoclaro);
}

@media (min-width: 768px){
    .swal2-modal {
        width: 50rem;
    }
}

.swal2-title{
    font-size: 2rem;
}
.swal2-input-label,
.swal2-input,
.swal2-html-container{
    font-size: 1.5rem !important;
}

.swal2-styled{
    font-size: 1.5rem !important;
}