@font-face {
    font-family: "Cheerful";
    src: url("/assets/fonts/Cheerful_Holiday.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Valentine";
    src: url("/assets/fonts/Valentine_Cupcake.ttf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Valentine_Cute";
    src: url("/assets/fonts/Valentine_Cute.ttf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

:root {
    --transition: 0.2;
    --bg-one: #ffffff;
    --stop: 40;
    --angle: 45;
    --border-width: 5;
    --padlock-size: 300;
    --border-radius: 100;
}


body {
    overflow: hidden;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 100vh;
    background-color: var(--bg-one);
    overflow: hidden;
}

form {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 0.5rem 1rem;
    justify-items: center;
    position: relative;
}

[type='password'] {
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Valentine', sans-serif;
    border-width: calc(var(--border-width) * 1px);
    border-style: solid;
    border-color: #F9D4D7;
    border-radius: calc(var(--border-radius) * 1px);
    text-align: center;
    outline: none;
    width: 100%;
    transition: border-color calc(var(--transition, 0.2) * 1s) ease;
}

[type='password']::placeholder {
    opacity: 20%;
}

[type='password']:valid {
    --accent: #F9D4D7;
}

[type='password']:invalid {
    --accent: #54011257;
}

[type='password']:-moz-placeholder-shown {
    --accent: #fff;
}

[type='password']:-ms-input-placeholder {
    --accent: #fff;
}

[type='password']:placeholder-shown {
    --accent: #fff;
}



#login {
    height: 0;
    width: 0;
    transform: scale(0);
    position: absolute;
}

[for='password'] {
    font-size: 12px;
    text-align: center;
    font-family: 'Valentine_Cute', sans-serif;
    color: #f593b7;
    user-select: none;

}


.login-button {
    --size: 52;
    --lightness: 45;
    align-items: center;
    background-color: #f593b7;
    font-family: 'Valentine', sans-serif;
    border-radius: calc(var(--border-radius) * 1px);
    cursor: pointer;
    display: flex;
    height: calc(var(--size) * 1px);
    justify-content: center;
    padding: 12px 20px;
    font-weight: bold;
    color: #fff;
    width: 100%;
    border: none;
    transition: background calc(var(--transition, 0.2) * 1s) ease;
}

.login-button svg {
    transform: translate(50%, 0);
}

.login-button * {
    cursor: pointer;
}


.login-button svg {
    height: 24px;
    width: 24px;
}

.login-button svg path {
    fill: #fff;
}

.padlock {
    --hue: 65;
    --color: #F9D4D7;
    --color-one: #f593b7;
    --color-two: #fff;
    height: calc(var(--padlock-size) * 1px);
    width: calc(var(--padlock-size) * 1px);
    grid-row: 1;
    position: relative;
}

.padlock__body {
    border: 5px solid #000000;
    border-radius: 20px;
    position: absolute;
    bottom: 10%;
    width: 66%;
    height: 46%;
    left: 50%;
    transform: translate(-50%, 0);
    background: var(--color);
    box-shadow: -20px 0 0px 0px var(--color-one) inset, 10px 0 0px 0px var(--color-two) inset;
}

.padlock__face {
    height: 25%;
    width: 40%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
}

.padlock__eye {
    position: absolute;
    height: 15px;
    width: 15px;
    background: #000;
    top: 0;
    border-radius: 50%;
    -webkit-animation: blink 4s infinite linear;
    animation: blink 4s infinite linear;
}

.padlock__eye:after {
    content: '';
    height: 25%;
    width: 25%;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-100%, -100%);
}

.padlock__eye--left {
    left: 0;
}

.padlock__eye--right {
    right: 0;
}

@-webkit-keyframes blink {

    0%,
    24%,
    27%,
    100% {
        transform: scaleY(1);
    }

    25%,
    26% {
        transform: scaleY(0);
    }
}

@keyframes blink {

    0%,
    24%,
    27%,
    100% {
        transform: scaleY(1);
    }

    25%,
    26% {
        transform: scaleY(0);
    }
}

.padlock__mouth {
    width: 25%;
    height: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
}


.padlock__mouth--two {
    height: 24px;
    width: 20px;
    border-radius: 50%;
    bottom: 24%;
    background: transparent;
    -webkit-clip-path: inset(64% 0 0 0);
    clip-path: inset(64% 0 0 0);
}


.padlock__mouth--three {
    height: 24px;
    width: 20px;
    border-radius: 50%;
    bottom: 24%;
    background: transparent;
    -webkit-clip-path: inset(64% 0 0 0);
    clip-path: inset(64% 0 0 0);
    display: none;
    overflow: hidden;
}

.padlock__mouth--two:before,
.padlock__mouth--three:before {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 4px solid #000;
}

.padlock__mouth--three {
    background: #000;
}

.padlock__mouth--three:after {
    content: '';
    position: absolute;
    height: 6px;
    width: 10px;
    border-radius: 50%;
    bottom: -2px;
    left: 40%;
    background: #f00;
}

.padlock__hook {
    --delay: 1;
    --clip: 40;
    width: 50%;
    height: 90%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(var(--pos, 40) * -1%));
    -webkit-clip-path: inset(0 0 30% 0);
    clip-path: inset(0 0 30% 0);
    transition: transform calc(var(--transition, 0.2) * 1s) calc(((var(--transition, 0.2) * 1.5) * var(--delay, 0)) * 1s) cubic-bezier(0.78, 0.16, 0.64, 1.8);
}

.padlock__hook:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border-radius: 50%/40%;
    transform: translate(-50%, -50%);
    box-shadow: 5px 0 0 0 #fff inset, -10px 0 0 0 #666 inset;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(var(--clip) * 1%), 50% calc(var(--clip) * 1%), 50% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(var(--clip) * 1%), 50% calc(var(--clip) * 1%), 50% 100%, 0 100%);
}

.padlock__hook>div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.padlock__hook>div:nth-of-type(1) {
    width: 100%;
    height: 100%;
    border: 35px solid #000;
    border-radius: 50%/40%;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(calc(var(--clip) * 1%) + 8px), 50% calc(calc(var(--clip) * 1%) + 8px), 50% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(calc(var(--clip) * 1%) + 8px), 50% calc(calc(var(--clip) * 1%) + 8px), 50% 100%, 0 100%);
}

.padlock__hook>div:nth-of-type(2) {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 20px solid #bfbfbf;
    border-radius: 50%/40%;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(var(--clip) * 1%), 50% calc(var(--clip) * 1%), 50% 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(var(--clip) * 1%), 50% calc(var(--clip) * 1%), 50% 100%, 0 100%);
}



/* si es valido se muestra el boton login  */
[type='password']:valid~#login,
[type='password']:valid~[for='login'] {
    visibility: visible;
}



[type='password']:valid~.padlock .padlock__mouth--three {
    display: block;
}

[type='password']:valid~.padlock .padlock__hook {
    --pos: 60;
    --delay: 0;
}



#login,
[for='login'] {
    visibility: hidden;
}