@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;1,100;1,200;1,300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    font-weight: 500;
    font-style: normal;
}

body {
    display: flex;
    justify-content: right;
    align-items: center;
    min-height: 100vh;
    background-image: url('../img/inicioSesion/Fondo.jpg');
    background-size: cover;
    background-position: center center;
}

.container {
    position: relative;
    width: 620px;
    height: 380px;
    margin-right: 50px;
    box-shadow: 10px 10px 4px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    color: white;
    padding: 30px 40px;
    overflow: hidden;
}

.container .form-box {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}


/*botones estilos*/

/* From Uiverse.io by jamik-dev */
.Download-button {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    padding: 12px 20px;
    color: white;
    background: linear-gradient(144deg, #39a900, #39a900 50%, #38a90080);
    border: none;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(59, 48, 78, 0.527);
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.Download-button-cancel{
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    padding: 12px 20px;
    color: white;
    background: linear-gradient(144deg, #adadad, #db0c0cbb 50%, #a9000080);
    border: none;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(78, 48, 48, 0.527);
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.Download-button-cancel-delete{
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    padding: 12px 20px;
    color: white;
    background: linear-gradient(144deg, #adadad, #6c6c6cbb 50%, #413e3e80);
    border: none;
    box-shadow: 0 0.7em 1.5em -0.5em rgba(78, 48, 48, 0.527);
    letter-spacing: 0.05em;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}
.btn-center{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto; /* Centra el botón como bloque */
}

.Download-button svg {
    margin-right: 8px;
    width: 25px;
}

.Download-button:hover {
    box-shadow: 0 0.5em 1.5em -0.5em #3b82f6;
    border-top-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.Download-button:active {
    box-shadow: 0 0.3em 1em -0.5em #3b82f6;
}

.Download-button::before {
    content: "";
    width: 4px;
    height: 40%;
    background-color: #9dc589;
    position: absolute;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    left: 0;
    transition: all 0.2s;
}

.Download-button-cancel::before{
    background-color: #f08f8f;
}
.Download-button-cancel-delete::before{
    background-color: #493f3f;
}


.Download-button::after {
    content: "";
    width: 4px;
    height: 40%;
    background-color: #39a900;
    position: absolute;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    right: 0;
    transition: all 0.2s;
}
.Download-button-cancel::after {
    background-color: #a90000;
}
.Download-button-cancel-delete::after{
    background-color: #333232;
}

.Download-button:hover::before,
.Download-button:hover::after {
    height: 60%;
}

.Download-button:hover::before {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    transform: translate(5px, -15px) rotate(45deg);
}

.Download-button:hover::after {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    transform: translate(-5px, 15px) rotate(45deg);
}

/* [TODOS TUS ESTILOS EXISTENTES SE MANTIENEN A CONTINUACIÓN SIN MODIFICACIONES] */
.form-box.fondo_sesion .animation {
    transform: translateX(0%);
    transition: 0.7s;
    opacity: 1;
    transition-delay: calc(.1s * var(--S));
}

.container.active .form-box.fondo_sesion .animation {
    transform: translateX(-120%);
    opacity: 0;
    transition-delay: calc(.1s * var(--D));
}

.container .form-box.RPassword {
    pointer-events: none;
}

.container.active .form-box.RPassword {
    pointer-events: auto;
}

.container .form-box.RPassword .animation {
    transform: translateX(120%);
    opacity: 0;
    transition: 0.5s ease;
    filter: blur(10px);
    transition-delay: calc(.1s * var(--S));
}

.container.active .form-box.RPassword .animation {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(.1s * var(--li));
}

.form-box.RPassword h1,
.form-box.CodigoVerificacion h1,
.form-box.NuevaContraseña h1 {
    font-size: 35px;
    color: #055b08;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: center;
    margin: 0px 20px;
    margin-right: 75px;
}

.form-box h1 {
    font-size: 35px;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-align: left;
    margin: 0px 20px;
    margin-left: -5px;
}
.error {
    color: red;
    font-size: 15px;
    padding-left: 40px;
    padding-right: 7px;
}
.input-box {
    position: relative;
    width: 70%;
    height: 50px;
    margin: 30px 30px;
}

.input-box.left input {
    text-align: left;
    padding-left: 75px;
}

.input-box.right input {
    text-align: right;
    padding-right: 75px;
}

.input-box input {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    font-size: 16px;
    background-color: rgba(241, 241, 241, 0.649);
    font-size: 17px;
    color: #000000;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    outline: none;
    transition: all 0.3s ease;
    padding: 0 35px 0 10px;
}

.input-box.left input:focus,
.input-box.left input:valid {
    background: #ffffff2c;
    border: 2px solid #ffffff;
}

.input-box.right input:focus,
.input-box.right input:valid {
    background: #ffffff2c;
    border: 2px solid #ffffff;
}

.input-box input:focus ~ i,
.input-box input:valid ~ i {
    color: rgb(3, 73, 12);
}

.input-box .icon-circle {
    position: absolute;
    top: -10px;
    left: -11px;
    width: 70px;
    height: 70px;
    background: #fffefe;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 6px 6px 4px rgba(0, 0, 0, 0.25);
}
a {
  text-decoration: none;
}

.input-box.right .icon-circle {
    left: auto;
    right: -11px;
}

.input-box img {
    width: 45px;
    height: 45px;
}

.input-box {
    position: relative;
}

.input-box.right label {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

.input-box.left label {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

.input-box .Eyecon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgb(20, 70, 3);
    cursor: pointer;
    transition: 0.3s;
}

.input-box input:focus ~ .Eyecon,
.input-box input:valid ~ .Eyecon {
    color: #055b08;
}

.input-box.left input:focus ~ label,
.input-box.left input:valid ~ label {
    top: -10px;
    font-size: 14px;
    font-weight: 400;
    color: rgb(83, 255, 44);
    /* background: rgba(72, 190, 105, 0.549) 45%; */
    border-radius: 5px;
    padding: 0 5px;
}

.input-box.right input:focus ~ label,
.input-box.right input:valid ~ label {
    top: -10px;
    font-size: 14px;
    color: rgb(15, 82, 0);
    font-weight: 400;
    /* background: rgba(255, 255, 255, 0.168) 55%; */
    padding: 0 5px;
}

.input-box.right input:focus ~ label,
.input-box.right input:valid ~ label {
    top: -8px;
    font-size: 14px;
    color: rgb(15, 77, 2);
}

.input-box.left input:focus ~ label,
.input-box.left input:valid ~ label {
    top: -8px;
    font-size: 14px;
    color: rgb(16, 78, 2);
}

.input-box input {
    padding: 20px 20px 5px 75px;
}

.recuperar_password {
    margin-top: -15px;
    align-items: flex-start;
}

.recuperar_password a {
    text-decoration: none;
    color: black;
    padding-left: 40px;
    padding-right: 7px;
}

.recuperar_password a:hover {
    text-decoration: underline;
    color: rgb(4, 77, 23);
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.btn {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 2px;
}

button:hover {
    background-color: #45a049;
}

.container .form-box.CodigoVerificacion,
.container .form-box.NuevaContraseña {
    pointer-events: none;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.container.verificacion .form-box.CodigoVerificacion {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0%);
}

.container.nueva-contraseña .form-box.NuevaContraseña {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0%);
}

.input-box.left .NuevaContraseñaEyecon {
    position: absolute;
    top: 50%;
    left: 400px;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgb(20, 70, 3);
    cursor: pointer;
    transition: 0.3s;
}

.input-box.left input:focus ~ .NuevaContraseñaEyecon,
.input-box.left input:valid ~ .NuevaContraseñaEyecon {
    color: #055b08;
}

.container.verificacion .form-box.RPassword,
.container.nueva-contraseña .form-box.RPassword,
.container.nueva-contraseña .form-box.CodigoVerificacion {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-120%);
}

.codigo-inputs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    padding-left: 100px;
}

.codigo-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(199, 199, 199, 0.621);
    color: #000000;
    outline: none;
    transition: all 0.3s ease;
}

.codigo-input:focus {
    border: 2px solid #00ff0070;
    background: #ffffff2c;
}

.separador {
    font-size: 24px;
    color: #000000;
    margin: 0 5px;
}

.container .curved-shape {
    position: absolute;
    right: 0;
    top: -5px;
    height: 600px;
    width: 850px;
    background: linear-gradient(to bottom right,
        rgba(72, 190, 105, 0.78) 45%,
        rgba(255, 255, 255, 0.50) 55%);
    transform: rotate(0deg) skewY(0deg);
    transform-origin: top left;
}

.container.active .curved-shape {
    background: linear-gradient(to bottom left,
        rgba(255, 255, 255, 0.50) 45%,
        rgba(72, 190, 105, 0.78) 55%
        );
    transform: rotate(-16deg) skewY(180deg);
    transition-delay: .5s;
}

.container .curved-shape,
.container .curved-shape2 {
    transition: transform 1.5s ease, background 0.8s ease;
}

@media screen and (max-width: 650px) {
    body {
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .container {
        width: 100%;
        margin: 0;
        padding: 1px;
        box-shadow: none;
    }

    .form-box {
        position: relative;
        width: 100%;
        margin: 0 auto;
        padding: 15px 10px;
    }

    .fondo_sesion h1 {
        font-size: 28px;
        text-align: center;
    }

    .form-box .RPassword h1 {
        font-size: 5px;
        text-align: center;
    }

    .input-box {
        width: 90%;
        margin: 15px auto;
    }

    .input-box input {
        padding: 10px 20px;
        font-size: 14px;
    }

    .input-box label {
        font-size: 12px;
    }

    .input-box .icon-circle {
        width: 65px;
        height: 65px;
    }

    .input-box img {
        width: 45px;
        height: 45px;
    }

    button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .btn {
        margin: 1px -30px;
        transform: none;
    }

    .recuperar_password {
        margin-top: 5px;
        text-align: center;
    }

    .recuperar_password a {
        font-size: 12px;
        padding: 0;
    }
    
    /* Estilos responsive para token */
    .token-input-field {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .token-btn {
        padding: 10px 25px;
        font-size: 16px;
    }
    .form-box h1,
    .form-box.RPassword h1,
    .form-box.CodigoVerificacion h1,
    .form-box.NuevaContraseña h1 {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .btn,
    button,
    .Download-button,
    .Download-button-cancel,
    .Download-button-cancel-delete {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0 !important;
        transform: none !important;
        text-align: center;
    }

}