*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    min-height: 100vh;
    font-family: "Century Gothic", Arial, sans-serif;

    background-image: url("../img/fondo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

button,
input{
    font: inherit; 
}

.pagina-acceso{
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 35px 20px;
}

.contenedor-acceso{
    width: min(950px, 100%);
    min-height: 580px;

    display: grid;
    grid-template-columns: 42% 58%;

    overflow: hidden;

    background-color: #172345;
    border-radius: 30px;

    box-shadow: 0 18px 50px rgba(15, 28, 62, 0.3);
}

.panel-marca{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        linear-gradient(
            rgba(147, 180, 255, 0.87),
            rgba(147, 180, 255, 0.87)
        ),
        url("../img/fondo.png");

    background-size: cover;
    background-position: center;
}

.logo-acceso{
    width: 150px;
    height: 150px;

    object-fit: cover;

    border: 8px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    box-shadow: 0 10px 30px rgba(0, 37, 108, 0.2);
}

.frase-acceso{
    margin-top: 38px;

    color: #172345;

    font-size: clamp(25px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.zona-formularios{
    position: relative;
    overflow: hidden;

    background-color: #172345;
}

.formularios-deslizables{
    width: 200%;
    min-height: 100%;

    display: flex;

    transform: translateX(0);
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.contenedor-acceso.mostrar-registro .formularios-deslizables{
    transform: translateX(-50%);
}

.formulario-panel{
    width: 50%;
    min-height: 580px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px;
}

.formulario-acceso{
    width: min(390px, 100%);
}

.formulario-acceso h1{
    margin-bottom: 32px;

    color: white;

    font-size: 34px;
    text-align: center;
}

.grupo-campo{
    margin-bottom: 19px;
}

.grupo-campo label{
    display: block;
    margin-bottom: 7px;

    color: white;
    font-size: 15px;
}

.grupo-campo input{
    width: 100%;
    min-height: 46px;

    padding: 10px 14px;

    border: 2px solid transparent;
    border-radius: 11px;

    background-color: white;
    color: #172345;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.grupo-campo input:focus{
    border-color: #93b4ff;
    box-shadow: 0 0 0 4px rgba(147, 180, 255, 0.2);
}

.campo-contrasena{
    position: relative;
}

.campo-contrasena input{
    padding-right: 50px;
}

.mostrar-contrasena{
    position: absolute;
    top: 50%;
    right: 10px;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    cursor: pointer;
}

.boton-principal{
    width: 100%;
    min-height: 47px;

    margin-top: 9px;

    border: none;
    border-radius: 13px;

    background-color: #93b4ff;
    color: #172345;

    font-weight: 700;
    cursor: pointer;

    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.boton-principal:hover{
    background-color: white;
    transform: translateY(-2px);
}

.cambio-formulario{
    margin-top: 24px;

    color: white;

    font-size: 14px;
    text-align: center;
}

.boton-enlace{
    border: none;
    background: transparent;

    color: #a9c4ff;

    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.boton-enlace:hover{
    color: white;
}

.terminos{
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 4px 0 13px;

    color: white;
    font-size: 13px;
    line-height: 1.4;
}

.terminos input{
    margin-top: 3px;
}

@media (max-width: 760px){

    .contenedor-acceso{
        grid-template-columns: 1fr;
    }

    .panel-marca{
        min-height: 240px;
        padding: 25px;
    }

    .logo-acceso{
        width: 105px;
        height: 105px;
    }

    .frase-acceso{
        margin-top: 15px;
        font-size: 23px;
    }

    .formulario-panel{
        min-height: 560px;
        padding: 35px 24px;
    }
}

@media (max-width: 420px){

    .pagina-acceso{
        padding: 12px;
    }

    .contenedor-acceso{
        border-radius: 20px;
    }

    .formulario-acceso h1{
        font-size: 28px;
    }
}

.error-input{
    border:2px solid #d62828 !important;
}

.correcto-input{
    border:2px solid #38b000 !important;
}

.mensaje-error{
    margin-top:5px;

    color:#d62828;

    font-size:13px;

    display:none;
}

.toast{
    position: fixed;
    top: 25px;
    right: 25px;

    min-width: 290px;
    max-width: 420px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 18px;

    background-color: white;
    color: #172345;

    border-left: 6px solid #172345;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);

    z-index: 5000;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}

.toast.mostrar{
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.toast.exito{
    border-left-color: #2a9d55;
}

.toast.error{
    border-left-color: #d62828;
}

.toast.advertencia{
    border-left-color: #f4a261;
}

.toast-icono{
    font-size: 22px;
}

@media (max-width: 480px){
    .toast{
        top: 15px;
        right: 15px;
        left: 15px;

        min-width: auto;
        max-width: none;
    }
}

.error-input{
    border-color: #d62828 !important;
    box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.13) !important;
}

.correcto-input{
    border-color: #2a9d55 !important;
}

.mensaje-error{
    display: block;

    min-height: 17px;
    margin-top: 5px;

    color: #ff9b9b;

    font-size: 12px;
}

.solo-admin{
    display: none;
}

.solo-admin.visible{
    display: block;
}