@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

:root {
  --inputcolor: #11334a;
  --submitcolor: #11334a;
  --submitcolorhover: #1e5b85;

  --errorcolor: #ff2424;

  --bgcolorlight: #37adfa;
  --bgcolordark: #2980b9;
  --infobglight: 17, 51, 74; /* RGB */
  --infobgdark: 17, 51, 74; /* RGB */
}

html {
  width: 100%;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #f3f3f3;
}

.bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom left, var(--bgcolorlight), var(--bgcolordark));
  top: 0;
  left: 0;
  z-index: -1;
}

.protection {
  min-width: 800px;
  min-height: 550px;
  position: fixed;
  width: 50%;
  height: calc(50% + 103.6px);
  bottom: calc(50% + 103.6px);
  left: 50%;
  transform: translate(-50%, calc(50% + 103.6px));
  z-index: 997;
  border-radius: 4px;
  box-shadow: 1px 5px 10px #333333;
  background: #ffffff;
}

.protection p {
  font-size: 14px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  color: #333333;
}

.protection p.result {
  color: #33cccc;
}

.protection img {
  width: calc(100% - 30px);
  height: calc(100% - 133.6px);
  margin: 15px;
  object-fit: contain;
  object-position: center;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.protection.active {
  animation: protect_active 3s;
  bottom: -51%;
}

@keyframes protect_active {
  0% {
    bottom: calc(50% + 103.6px);
  }
  80% {
    bottom: calc(50% + 103.6px);
  }
  90% {
    bottom: calc(60% + 103.6px);
  }
  100% {
    bottom: -51%;
  }
}
.protection .hidden {
  display: none;
  visibility: hidden;
}

.protection .hp {
  position: fixed;
  bottom: -1000px;
  left: -1000px;
}

.container {
  max-width: 780PX;
  max-height: 550px;
  min-width: 550px;
  min-height: 340px;
  width: 80%;
  height: 40%;
  border-radius: 2px;
  box-shadow: 8px 8px 5px rgb(22 2 6 / 30%);
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%,rgba(0,0,0,0.2) 100%);
  line-height: 1;
}
input {
  opacity: 0.7;
  border: 0;
  background: var(--inputcolor);
  display: block;
  margin: 20px auto;
  padding: 14px 10px;
  width: 40%;
  outline: none;
  color: white;
  transition: 0.25s;
  border-radius: 2px;
}
input[type = "submit"] {
  border: 0;
  background: var(--submitcolor);
  display: block;
  margin: 20px auto;
  padding: 14px 10px;
  width: 30%;
  outline: none;
  color: white;
  transition: 0.25s;
  cursor: pointer;
}

input.pass {
  -webkit-text-security: disc !important;
}

input[type = "submit"]:hover{
  background: var(--submitcolorhover);
}

input[type = "submit"]:disabled {
  cursor: not-allowed;
}

.container i {
  position: absolute;
}

p.errortext {
  font-weight: bold;
  color: var(--errorcolor);
  text-align: center;
  text-shadow: 1px 1px 2px #333;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.icon {
  margin: 12.5px;
  margin-left: 361.7px;
  color: #f0f0f0;
  text-align: center;
  width: 18px;
  height: 18px;
}
.icon svg {
  width: 18px;
  height: 18px;
}
.login {
  padding-top: 50px;
  float: left;
  height: 100%;
  width: 70%;
}

.info {
  float: right;
  width: 30%;
  height: 100%;
  text-align: center;
  background: linear-gradient(rgba(var(--infobglight), 0.8), rgba(var(--infobgdark), 0.8));
  opacity: 0.9;
  margin: 0;
  box-shadow: 0px 5px 5px rgb(22 2 6 / 30%);
}
.mobilelogin {
  visibility: hidden;
  position: absolute;
}

/* 6 digit OTC */

.otcdiv {
  min-width: 800px;
  min-height: 300px;
  position: fixed;
  width: 50%;
  height: calc(20% + 103.6px);
  bottom: calc(50% + 103.6px);
  left: 50%;
  transform: translate(-50%, calc(50% + 103.6px));
  z-index: 999;
  border-radius: 4px;
  box-shadow: 1px 5px 10px #333333;
  background: #f5f5f5;
  color: var(--inputcolor);
  text-align: center;
  padding: 30px;
  visibility: visible;
  display: unset;
  animation: floatup 0.4s ease;
}

.otcdiv.deactive {
  display: none;
  visibility: hidden;
}
.otcdiv:not(.deactive) + .bg {
  z-index: 998;
  background: linear-gradient(to bottom left, color-mix(in srgb, var(--bgcolorlight) 70%, black), color-mix(in srgb, var(--bgcolordark) 70%, black));
}


input.otc {
  margin-top: 40px;
  display: block;
  color: var(--inputcolor);
  font-weight: bold;
  border: #333333bd 1px solid;
  font-family: "Consolas", ui-monospace, "Menlo", "Source Code Pro", monospace;
  font-size: 2em;

  --gap: 8px;
  width: calc(6 * (var(--gap) + 1ch));
  letter-spacing: var(--gap);
  padding: var(--gap);
  padding-right: 0;
  border-radius: calc(var(--gap) / 2);
  background: linear-gradient(to right, #dddddd 1px 1ch, transparent 0) content-box center left / calc(1ch + var(--gap)) 1em repeat-x;
}
.otcdiv input[type = "submit"] {
  bottom: 15px;
  position: absolute;
  left: 35%;
}
.otcdiv h1 {
  font-size: 28px;
}
.otcdiv p {
  font-size: 14px;
}

@keyframes floatup {
  0% {
    bottom: -75px;
  }
  100% {
    bottom: calc(50% + 103.6px);
  }
}

@media (max-width:1230px) {
  .container {
    height: 600px;
    max-width: 700px;
    min-height: 700px;
    width: 700px;
  }
  .mobilelogin h1 {
    font-size: 60px;
    visibility: visible;
    position: relative;
    text-align: center;
  }
  .mobilelogin {
    padding-top: 35px;
    width: 100%;
  }
  .form {
    margin-top: 200px;
  }
  .icon {
    margin: 14.5px;
    margin-left: 523.5px;
    width: 36px;
    height: 36px;
  }
  .icon svg {
    width: 36px;
    height: 36px;
  }
  .login {
    width: 100%;
    height: 100%;
    padding-top: 0px;
  }
  .info {
    visibility: hidden;
    position: absolute;
  }
  h1 {
    font-size: 40pt;
  }
  p {
    font-size: 25px;
  }
  .login input[type = "text"],.login input[type = "password"]{
    margin: 20px auto;
    padding: 18px 14px;
    width: 60%;
    color: white;
    font-size: 25px;
  }
  .login input[type = "submit"]{
    margin: 20px auto;
    padding: 18px 14px;
    width: 50%;
    font-size: 25px;
  }
}

/* Wave anim */

section {
  opacity: 0.5;
  position: fixed;
  width: 100%;
  overflow: hidden;
  height: 40%;
  bottom: 0;
  left: 0;
  z-index: -1;
}
section .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/png;base64, ");
  background-size: 1000px 100px;
}
section .wave.wave1 {
  animation: wave1 15s linear infinite;
  z-index: 1000;
  opacity: 1;
  animation-delay: 0s;
  bottom: 0;
}
section .wave.wave2 {
  animation: wave2 15s linear infinite;
  z-index: 999;
  opacity: 0.8;
  animation-delay: -5s;
  bottom: 10px;
}
section .wave.wave3 {
  animation: wave1 30s linear infinite;
  z-index: 998;
  opacity: 0.2;
  animation-delay: -2s;
  bottom: 15;
}
section .wave.wave4 {
  animation: wave2 20s linear infinite;
  z-index: 997;
  opacity: 0.5;
  animation-delay: -5s;
  bottom: 20px;
}
@keyframes wave1 {
      0%
      {
        background-position-x: 0;
      }
      100%
      {
        background-position: 1000px;
      }
}
@keyframes wave2 {
      0%
      {
        background-position-x: 0;
      }
      100%
      {
        background-position: -1000px;
      }
}
