body {
    font-family: "Figtree", sans-serif;
    margin: 0px;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

body .main {
    width: 100%;
    height: 100dvh;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-sizing: border-box;
    letter-spacing: 0.04rem;
}

body > .background {
    background-image: url('../images/background-2.png');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* -------------------------------------------------------------------- */
/* -------------------------------- GLOB ------------------------------ */
/* -------------------------------------------------------------------- */
.shadow-lg {
    box-shadow: 0 0 #0000, 
        0 0 #0000,
        0 8px 26px -4px #e9ecef,
        0 8px 9px -5px #e9ecef !important;
}

/* -------------------------------------------------------------------- */
/* ------------------------------- KEYPAD ----------------------------- */
/* -------------------------------------------------------------------- */
.container-keypad {
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.container-keypad.error {
    animation: shake 0.4s ease;
}

.container-keypad-right {
    height: calc(100% - 60px);
    width: 60%;
    background-color: #30353b;
    border-radius: 20px;
    margin: 30px;
}

.container-keypad .keypad-title {
    text-align: center;
    font-size: 24px;
    color: #ffffffc9;
    margin-bottom: 25px;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 114px);
    grid-template-rows: repeat(4, 115px);
    gap: 30px 38px;
}

.keypad-item {
    background-color: #ffffff59;
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    user-select: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.keypad-item:hover {
    background-color: rgb(255 255 255 / 12%);
    box-shadow: 0 4px 8px rgb(0 0 0 / 8%);
}

.keypad-item.zero {
    grid-column: 2; 
    grid-row: 4;
}

.keypad-item > div {
    font-size: 36px;
    line-height: 30px;
}

.keypad-item > span {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 26px;
    letter-spacing: 1px;
    height: 20px;
}

.keypad-result {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.keypad-result .keypad-result-item {
    border: 2px solid #ffffffa1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.keypad-result .keypad-result-item.active {
    background-color: #ffffffd4;
}

.keypad-result input {
    border: none;
    background: transparent;
    height: 50px;
    font-size: 50px;
    width: 250px;
    text-align: center;
    color: #333;
    letter-spacing: 18px;
}

.keypad-result input:focus {
    outline: none;
    pointer-events: none;
}

/* -------------------------------------------------------------------- */
/* ---------------------------- PROFIL VIEW --------------------------- */
/* -------------------------------------------------------------------- */
.container-employe {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    width: 60vw;
    margin: 0 auto;
    box-sizing: border-box;
}

.container-employe .container-employe-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 90px;
    margin-top: -100px;
}

.container-employe .container-employe-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-employe .container-employe-hour {
    font-size: 9rem;
    letter-spacing: 4px;
    font-weight: 200;
}

.container-employe .container-employe-date {
    font-size: 21px;
}

.container-employe .container-employe-name {
    font-size: 34px;
    font-weight: 500;
    color: #fff;
}

.container-employe .container-employe-description {
    color: #e1e0e0;
    font-size: 24px;
    margin: 6px 0px 8px 0px;
    font-weight: 300;
}

.container-employe .container-employe-actions {
    position: relative;
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.container-employe .container-employe-actions a {
    border-radius: 22px;
}

/* -------------------------------------------------------------------- */
/* ------------------------------ PAGE FADE --------------------------- */
/* -------------------------------------------------------------------- */
.page-fade {
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-fade-active {
    opacity: 1;
    transform: scale(1);
}

/* -------------------------------------------------------------------- */
/* ------------------------------- LOGIN ------------------------------ */
/* -------------------------------------------------------------------- */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container form {
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-width: 32rem;
    width: 100%;
    background-color: #ffffff59;
}

.login-container form h2 {
    margin-top: 0px;
}

.container-login {
    position: absolute;
    right: 40px;
    top: 30px;
}


/* -------------------------------------------------------------------- */
/* ------------------------------- FORMS ------------------------------ */
/* -------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #212529;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25rem;
    margin-bottom: 5px;
}

.form-group .form-control {
    font-size: 16px;
    line-height: 1.25rem;
    padding: .625rem;
    border: 1px solid #dee2e6;
    width: 100%;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
    background-color: rgb(255 255 255 / 12%);
}

/* -------------------------------------------------------------------- */
/* -------------------------------- BTN ------------------------------- */
/* -------------------------------------------------------------------- */
.btn.btn-primary {
    background-color: #ffffff59;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    user-select: none;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.btn.btn-primary:hover {
    background-color: rgb(255 255 255 / 12%);
    box-shadow: 0 4px 8px rgb(0 0 0 / 8%);
}


/* -------------------------------------------------------------------- */
/* ------------------------------ LOADER ------------------------------ */
/* -------------------------------------------------------------------- */
.wrapper {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.wrapper .wrapper-text {
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.04rem;
    margin-left: 18px;
}

.checkmark__circle{
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #79c14281;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards
}

.checkmark{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #79c14281;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both
}

.checkmark__check{
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards
}
    
@keyframes stroke {
    100% {stroke-dashoffset: 0}
}
    
@keyframes scale {
    0%, 100% {transform: none}
    50% {transform: scale3d(1.1, 1.1, 1)}
}
    
@keyframes fill{
    100% {box-shadow: inset 0px 0px 0px 30px #79c14281}
}

/* -------------------------------------------------------------------- */
/* --------------------------- KEYFRAMES ------------------------------ */
/* -------------------------------------------------------------------- */

@keyframes shake {
    0% { transform: translateX(0); }
    15% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    45% { transform: translateX(-8px); }
    60% { transform: translateX(8px); }
    75% { transform: translateX(-5px); }
    90% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}



/* -------------------------------------------------------------------- */
/* --------------------- RESPONSIVE : MOBILE -------------------------- */
/* -------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    body > .background {
        inset: 0px;
        filter: none;
    }

    .keypad {
        grid-template-columns: repeat(3, 100px);
        grid-template-rows: repeat(4, 100px);
        gap: 20px 26px;
    }

    .container-login {
        display: none;
    }

    .container-employe {
        width: 100%;
        padding: 20px;
    }

    .container-employe .container-employe-hour {
        font-size: 20vw;
    }

    .container-employe .container-employe-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container-employe .container-employe-description {
        text-align: center;
    }
}

@media screen and (max-width: 360px) {
    body > .background {
        inset: 0px;
    }
    
    .keypad {
        grid-template-columns: repeat(3, 90px);
        grid-template-rows: repeat(4, 90px);
        gap: 18px 22px;
    }

    .keypad-item > div {
        font-size: 32px;
    }

    .container-login {
        display: none;
    }
}