@font-face {
  font-family: 'LemonMilk';
  src: url('../font/LEMONMILK-Medium.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html,
body {
    padding: 0;
    margin: 0;
    font-family: 'LemonMilk', sans-serif;
}

html {
    max-width: 480px;
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

html {
    width: 100%;
    height: 100dvh;
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-height: 100dvh;
}

.app {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    /*background-color: rgb(78, 255, 157);*/
    overflow: hidden;
    display: flex;
    flex-flow: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 480px;
}
.background_section {
    position: fixed;
    max-width: 480px;
    overflow: hidden;
    z-index: -1;
    width: 100%;
    max-height: 100dvh;
    height: 100%;
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
.input_beforeLogin {
    font-size: 2.25rem;
    line-height: 2.25;
    letter-spacing: 3rem;
}
.bg_overlay.main_bg {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    display: flex
;
}
.bg_overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    margin: 0;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    z-index: 0;
    height: 100dvh;
    max-width: 480px;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.input_img {
    scale: 1.25
}

.bottom_light {
    position: absolute;
    width: 100%;
    height: 100dvh;
    z-index: 1;
    opacity: .6;
    background-repeat: no-repeat !important;
}

.bg_wrapper {
    transform: translate(-50%,-50%);
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.spin_bg {
    filter: drop-shadow(0 0 2px #39ec93);
    max-width: 480px;
    max-height: 480px;
    width: 100%;
    height: 100%;
}

.spin {
    animation: spin 2s linear infinite;
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
}
@-moz-keyframes spin { 
    0% { -moz-transform: rotate(0deg);}
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    0% { -webkit-transform: rotate(0deg);}
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        transform: rotate(0deg); 
        transform:rotate(360deg); 
    } 
}
@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 0.5;
        transform: scale(2);
    }

    100% {
        opacity: 0;
        transform: scale(0);
    }
}

img.light_img {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    animation: pulse 3s linear infinite
}
.move {
    -webkit-animation: move 10s linear infinite;
    -moz-animation: move 10s linear infinite;
    animation: move 10s linear infinite;
    z-index: 100;
    position: absolute;
    width: 100px;
    height: 100px;
} 

@keyframes move {
    0% {
        top: 50%;
        left: 50%;
        width: 2rem;
        height: 2rem;
    }

    25% {
        top: 20%;
        left: 80%;
        width: 4rem;
        height: 4rem;
    }

    50% {
        top: 80%;
        left: 20%;
        width: 1rem;
        height: 1rem;
    }

    75% {
        top: 80%;
        left: 80%;
        width: 3rem;
        height: 3rem;
    }

    100% {
        top: 50%;
        left: 50%;
        width: 4rem;
        height: 4rem;
    }
} 
.bg_input {
    width: 100%;
    height: fit-content;
    z-index: 999;
}
.logo {
    position: absolute;
    z-index: 9;
    max-height: 110px;
    height: 100%;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    left: 50%;
    top: 30px;
    transform: translate(-50%);
}
.bg_input.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: column;
}

.input_img_wrapper {
    max-width: 480px;
    width: 100%;
    height: 320px;
    margin: 0 auto; 
    align-items: center; 
    z-index: 9;
    overflow: hidden;
    display: inline-flex;
    /* justify-content: center; */
    /* align-items: center; */
    /* text-align: center; */
}

.digit-input {
    width: 100%;
    height: 100%;
    font-size: 1.85rem;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
    z-index: 99;
}

input.digit-input, .username_input_box, .usernameInput {
    -webkit-text-fill-color: transparent!important;
    background: linear-gradient(45deg, #00ea64 50%, #00e3a2 50%)!important;
    -webkit-background-clip: text!important;
    caret-color: #00ea64 !important;
}

.input_wrapper_digit {
    position: relative; 
    width: 100%;
    height: 80px;
    left: 0;
    z-index: 9999;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 480px;
}
.digit-input:focus, input {
  outline: none;
  box-shadow: none;
}

.light {
    position: absolute;
    width: 100%;
    height: 100dvh;
    top: 110%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;
    max-width: 400px;
    max-height: 400px;
    opacity: .7;
}
button.login_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
@media screen and (max-width: 412px) {
  .input_wrapper_digit { 
    height: 100%;
  }
  input.digit-input {
    height: 100%;
  }
  .login_btn_img {
    height: 35px!important
  }
}

@media screen and (max-width: 330px) {
  .input_wrapper_digit { 
      height: 100%;
  }
  input.digit-input {
    height: 100%;
  }
  .login_btn_img {
    height: 28px!important
  }
}
html {
  font-size: 100%;
}

@media (max-width: 375px) {
  html {
    font-size: 90%;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 80%;
  }
}

.null_wrapping {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem; 
    width: 100%;
    max-width: 480px;  
    margin: 0 auto; 
    padding: 0 1rem;  
}
 
.input_with_background {
    background: url(../img/input_bg881.png) no-repeat center center;
    background-size: contain;
    aspect-ratio: 1/1; 
    width: 100%; 
    max-width: 60px; 
    text-align: center;
    border: none;
    outline: none;
} 
@media (max-width: 420px) {
    .null_wrapping {
        gap: 0.5rem;
        max-width: 100%;
    }
    .input_username_bg {
        height: 60px;
        width: auto;
    }
}

@media (max-width: 400px) {
    .null_wrapping {
        grid-template-columns: repeat(6, 1fr); 
        gap: 0.75rem 0.5rem;
    }
    .input_username_bg {
        height: 55px;
        width: auto;
    }
}

.username_input {
    width: 100%;
    height: 60px;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 480px;
    position: relative !important;
}


.input_username_bg {
    background: url(../img/username_border.png);
    background-size: 100% auto;
    z-index: 999;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 60px;
    position: relative;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    display: flex;
    min-height: 70px;
}

.login_box_bg {
    position: relative;
    z-index: 999;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    min-height: 360px;
    gap: 1rem;
}
.login_box_bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/input_bg_no_box.png);
  background-size: cover;
  opacity: 0.5; 
  z-index: -1; 
  background-repeat: no-repeat !important;
  background-position: center 60% !important;
  background-size: 120% auto !important;
}
.form_control.password {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    padding-inline: 40px; 
}

.form_control.username {
    display: grid;
    width: 100%;
    grid-template-columns: 25% 75%;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding-inline: 2rem;
    gap: .5rem;
    position: relative;
}

.usernameInput {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 100%; 
    transition: font-size 0.2s ease;  
}

.usernameInput.small-text {
    font-size: 80%; 
}

.usernameInput::placeholder {
    opacity: .85;
    color: #00e3a2;
}
.usernameInput::placeholder {
    opacity: 0.85;
    color: #00e3a2;
}

.usernameInput::-webkit-input-placeholder {
    opacity: 0.85;
    color: #00e3a2;
}
.usernameInput::-moz-placeholder {
    opacity: 0.85;
    color: #00e3a2;
}
.usernameInput:-ms-input-placeholder {
    opacity: 0.85;
    color: #00e3a2;
}
.usernameInput:-moz-placeholder {
    opacity: 0.85;
    color: #00e3a2;
}
.label_username {
    opacity: 0.85;
    color: #00e3a2;
}
.usernameInput {
    background: transparent;
    border-bottom: 2px solid #00e3a2;
    padding-inline: 15px;
    padding-bottom: 5px;
} 
.login_btn_img {
    width: auto!important;
    height: 45px;
    transition: transform 0.1s ease; 
    cursor: pointer; 
} 
.login_btn_img:active {
    transform: scale(0.93); 
}

.response_message {
    background: url(../img/message.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    max-width: 250px;
    height: 100%;
    max-height: 130px;
    z-index: 999999999999;
    position: relative;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    display: flex
;
}

div#message {
    width: 100%;
    display: flex;
    margin: 0 auto;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: absolute;
    height: 100px;
    max-width: 480px;
    bottom: 40px;
    opacity: 0; /* Start invisible */
    animation: fadeIn 3s forwards; /* Animation lasts 3s and stays at end state */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.response_text_message {
    margin: 0 auto;
    align-items: center;
    font-weight: 700;
    font-family: system-ui;
    position: relative;
    font-size: 14px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.error {
    color: red;
}
span.success.response_text_message {
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: wheat;
}
input#username {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}