@import url('http://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: rgb(0,0,0);
    background-color: #122164;
    /* background-image: linear-gradient(45deg, #281f72 1%, #5a74ff 100%); */
    /* background: #1f293a; */
}

.head {
    position: fixed;
}

.container {
    position: relative;
    width: 500px;
    height: 400px;
    background: transparent;
    border: 2px solid #0ef;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 45px;
    overflow: hidden;
    right: -20px;
}

.img-outside {
    display: none;
    position: absolute;
    top: 15%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 1;
}

.img-outside-container {
    display: none; /* Oculta la imagen */
    width: 400px;
    height: auto;
    position: relative;
    left: -20px;
    z-index: -1;
    border-radius: 15px;
}

/* dispositivos móviles */
@media (max-width: 767px) {
    .responsive-only {
        display: block; /* Muestra la imagen solo en dispositivos móviles */
        width: 300px;
        height: auto;
    }
    .container {
        width: 340px; 
        height: 400px; 
        padding: 20px; 
        right: 0px; 
    }
}

/*escritorio */
@media (min-width: 768px) {
    .desktop-only {
        display: block; /* Muestra la imagen solo en pantallas de escritorio */
    }
}


.container .login-box {
    position: relative;
    width: 100%;
}

.login-box .page-box {
    display: flex;
    flex-direction: column;
}

/*PAGINA GENERAL*/
.page-box .page {
    width: 100%;
}


    /* PÁGINA DEL CORREO ELECTRÓNICO */
    .page-box .page.email-page {
        transform: translateX(0);
        transition: .25s ease-in-out;
    }
    .page-box.active-pass .page.email-page {
        transform: translateX(-500px);
    }
    .page-box.active-regi .page.email-page {
        transform: translateX(-500px);
    }
    .page-box.active-recupass .page.email-page {
        transform: translateX(-500px);
    }


    /* PÁGINA DE LA CONTRASEÑA */
    .page-box .page.password-page {
        position: absolute;
        transform: translateX(500px);
        margin-top: 100px;
        transition: .25s ease-in-out;
    }
    .page-box.active-pass .page.password-page {
        transform: translateX(0);
    }
    .page-box.active-recupass .page.password-page {
        transform: translateX(-500px);
    }


    /* PÁGINA Welcome */
    .page-box .page.welcome-page {
        transform: translateX(0);
        transition: .25s ease-in-out;
        margin-bottom: 100px;
    }
    .page-box.active-actu .page.welcome-page {
        transform: translateX(-500px);
    }

    
.page-box .login-title {
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.login-title h2 {
    font-size: 32px;
    line-height: 1.5;
}

.login-title p {
    font-size: 16px;
    font-weight: 500;
}

.page .input-box{
    position: relative;
    width: 100%;
    height: 55px;
    margin-bottom: 20px;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid #2c4766;
    outline: none;
    border-radius: 6px;
    font-size: 16px;
    color: #fff;
    padding: 0 16px;
    transition: .3s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: #0ef;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #fff;
    pointer-events: none;
    transition: .3s ease;
}

.input-box input:focus~label,
.input-box input:valid~label {
    top: 1px;
    left: 12px;
    font-size: 13px;
    color: #0ef;
    background: #122164;
    padding: 0 6px;
}

.guest-mode {
    margin: 40px 0;
}

.guest-mode p {
    font-size: 14.5px;
    color: #fff;
}

.guest-mode a {
    font-size: 14.5px;
    color: #0ef;
    text-decoration: none;
}

.guest-mode a:hover {
    text-decoration: underline;
}

.btn-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-box a {
    font-size: 14.5px;
    color: #0ef;
    text-decoration: none;
}

.btn-box a:hover {
    text-decoration: underline;
}

.btn-box button {
    width: 90px;
    height: 40px;
    background: #0ef;
    border: 2px solid #0ef;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #1f293a;
    font-weight: 600;   
    transition: background-color 0.3s, color 0.3s;
}

.btn-box button:hover {
    background-color: #1f293a;
    color: #0ef; 
}

.btn-box button:focus {
    background-color: #1f293a;
    color: #0ef;
    border-color: #0ef;
    /* border-width: 4px;  */
}

.forgot {
    margin-top: 6px;
}

.forgot.show {
    margin: 10px 0 20px;
    display: flex;
    justify-content: space-between;
}

.forgot a {
    font-size: 14.5px;
    color: #0ef;
    text-decoration: none;
}

.forgot a:hover {
    text-decoration: underline;
}

.forgot.show label {
    font-size: 14.5px;
    color: #fff;
    cursor: pointer;
}

.forgot.show label input {
    accent-color: #0ef;
    cursor: pointer;
    margin-right: 3px;
}

.alert {
    padding: 5px 20px 5px 20px;
    background-color: rgba(165, 41, 41, 0.548);
    color: white;
    margin-bottom: 15px;
    border-radius: 10px;
}
  