@charset "UTF-8";
body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 18px;
}

*, *:before, *:after {
  transition: all 0.5s cubic-bezier(0.5, 0, 0.5, 1);
  transition-property: opacity, background-color, border-color, -webkit-transform;
  transition-property: transform, opacity, background-color, border-color;
  transition-property: transform, opacity, background-color, border-color, -webkit-transform;
  transition-delay: 0s;
}

.vs .ui-icon {
  --bg: #E3E6F9;
  --color: var(--color-primary);
}
.vs .ui-password:before {
  background-color: var(--color-primary);
  -webkit-transform: translateX(-100%);
          transform: translateX(-100%);
}
.vs .ui-password:focus-within:before {
  -webkit-transform: none;
          transform: none;
}


.load .ui-icon {
  --bg: #E3E6F9;
  --color: var(--color-primary);
}
.load .ui-password:before {
  -webkit-transform-origin: left center;
          transform-origin: left center;
  background-color: var(--color-primary);
  -webkit-animation: password-validating 1s infinite;
          animation: password-validating 1s infinite;
}
.load .ui-submit {
  opacity: .5;
}


.error .ui-icon {
  background-color: #FAD0D8;
  --color: var(--color-error);
  -webkit-animation: icon-error 1s cubic-bezier(0.5, 0, 0.5, 1) both;
          animation: icon-error 1s cubic-bezier(0.5, 0, 0.5, 1) both;
}
.error .ui-password:before {
  -webkit-animation: slide-right 0.5s cubic-bezier(0.5, 0, 0.5, 1) both;
          animation: slide-right 0.5s cubic-bezier(0.5, 0, 0.5, 1) both;
  background-color: #E2294E;
}


.success .ui-icon {
  --bg: var(--color-success);
  --color: var(--color-success);
}
.success .ui-icon:before {
  -webkit-animation: icon-bg-success .5s ease-out both;
          animation: icon-bg-success .5s ease-out both;
}
.success .ui-password:before {
  -webkit-animation: slide-right 0.5s cubic-bezier(0.5, 0, 0.5, 1) both;
          animation: slide-right 0.5s cubic-bezier(0.5, 0, 0.5, 1) both;
  background-color: var(--color-success);
}

#codeimg{
    width:90px;
    height:30px;    
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    border: 1px solid #e8e9f1;
}


@-webkit-keyframes password-validating {
  from {
    -webkit-transform: translateX(-100%) scaleX(0.5);
            transform: translateX(-100%) scaleX(0.5);
  }
  to {
    -webkit-transform: translateX(100%) scaleX(0.5);
            transform: translateX(100%) scaleX(0.5);
  }
}

@keyframes password-validating {
  from {
    -webkit-transform: translateX(-100%) scaleX(0.5);
            transform: translateX(-100%) scaleX(0.5);
  }
  to {
    -webkit-transform: translateX(100%) scaleX(0.5);
            transform: translateX(100%) scaleX(0.5);
  }
}
@-webkit-keyframes slide-right {
  from {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  to {
    -webkit-transform: none;
            transform: none;
  }
}
@keyframes slide-right {
  from {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
  to {
    -webkit-transform: none;
            transform: none;
  }
}
@-webkit-keyframes icon-error {
  from, 85%, to {
    -webkit-transform: none;
            transform: none;
  }
  20%, 50% {
    -webkit-transform-origin: right center;
            transform-origin: right center;
    -webkit-transform: translateX(-30%) scaleX(1.1);
            transform: translateX(-30%) scaleX(1.1);
  }
  35%, 65% {
    -webkit-transform-origin: left center;
            transform-origin: left center;
    -webkit-transform: translateX(30%) scaleX(1.1);
            transform: translateX(30%) scaleX(1.1);
  }
}
@keyframes icon-error {
  from, 85%, to {
    -webkit-transform: none;
            transform: none;
  }
  20%, 50% {
    -webkit-transform-origin: right center;
            transform-origin: right center;
    -webkit-transform: translateX(-30%) scaleX(1.1);
            transform: translateX(-30%) scaleX(1.1);
  }
  35%, 65% {
    -webkit-transform-origin: left center;
            transform-origin: left center;
    -webkit-transform: translateX(30%) scaleX(1.1);
            transform: translateX(30%) scaleX(1.1);
  }
}
@-webkit-keyframes icon-bg-success {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: .5;
  }
  to {
    -webkit-transform: scale(4);
            transform: scale(4);
    opacity: 0;
  }
}
@keyframes icon-bg-success {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: .5;
  }
  to {
    -webkit-transform: scale(4);
            transform: scale(4);
    opacity: 0;
  }
}
.ui-modal {
  --color-primary: #5A52FF;
  --color-error: #E0294C;
  --color-success: #0DBE65;
  background-color: #fff;
  padding: 2rem 4rem;
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.ui-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.ui-icon:before {
  content: '';
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--bg);
  will-change: transform;
}
.ui-icon > .ui-lock {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ui-icon > .ui-lock:before, .ui-icon > .ui-lock:after {
  content: '';
  position: absolute;
}
.ui-icon > .ui-lock:after {
  background-color: var(--color);
  height: 25%;
  width: 45%;
  -webkit-transform: translateY(50%);
          transform: translateY(50%);
  border-radius: 2px;
}
.ui-icon > .ui-lock:before {
  width: 30%;
  height: 50%;
  border-radius: 1rem;
  border: 4px solid var(--color);
}

.ui-title {
  font-size: 1rem;
  line-height: 2rem;
}

.ui-subtitle {
  font-size: .75rem;
  height: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9A9CA2;
}
.ui-subtitle > span {
  line-height: 1rem;
  position: absolute;
  white-space: nowrap;
}
.ui-subtitle > span.ui-error {
  font-weight: bold;
  color: var(--color-error);
}

.ui-password {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  border: none;
  padding-bottom: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}
.ui-password:before, .ui-password:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 1;
}
.ui-password:after {
  background-color: #E8E9F0;
  z-index: 0;
}

.ui-password-input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: none;
  border: none;
  height: 2rem;
  width: 15rem;
}
.ui-password-input:focus {
  outline: none;
}

.ui-submit {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0 1.5rem;
  height: 2rem;
  border-radius: .5rem;
  font-size: 0.75rem;
  color: white;
  background-color: var(--color-primary);
}
.ui-submit:active {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  transition-duration: .2s;
}
.ui-submit:focus {
  outline: none;
}

.ui-subtitle > span.ui-error {
    color: #E91E63;
    font-size: 12px;
}

.ui-subtitle > span.ui-ok {
    color: #0dbe65;
    font-size: 12px;
}


*, *:before, *:after {
  box-sizing: border-box;
  position: relative;
}
