@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,600;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,800;1,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

:root {
  --absoluteWhite: #fff;
  --prymery: #08254F;
  --colorYellowBright: #F4CB0F;
  --colorBackground: #AABEDC;
  --colorRed: #BA5B50;
  --colorBlue: #214670;
  --colorBlue-2: #27B3F8;
  --colorBlueLight: #E8F9FF;
  --colorGreen: #3CB371;
  --colorGreenDark: #13974E;
  --colorGreenLight: #E3FCEE;
  --colorGreenLightSecond: #d4efe0;
  --colorRedBright: #CD1000;
  --colorRedAccent: #F90000;
  --colorRedLight: #FFEEEC;
  --colorBlueBlackDark: #000E1C;
  --colorOrangeBright: #FE8415;
  --grayLight: #F1F1F1;
  --colorGrayBlue: #98b0b3;
  --colorGrayBlue-2:#B6DDEB;
  --colorGrayBlueLight: #DFE4E6;
  --colorGrayBlueLightSecond: #EEE;
  --colorGrayDark: #908E8E;
  --colorGrayInput: #B5BEC3;
  --colorTextGray: #697073;
  --colorWarning: #FFE9D5;
  --colorGray: #DBE2E6;
  --colorGrayLight: #F1F1F1;
  --colorboxShadow: rgba(0, 0, 0, 0.09);
}

html {
  color: var(--prymery);
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(253deg, rgba(170, 190, 220, 0.81) 1.16%, rgba(8, 37, 79, 0.84) 99.05%);
}

/* animation */
.area {
  background: #76B5F9;  
  background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
  width: 100%;
}

.container {
  height: 100dvh;
  display: flex;
  justify-content: center;
}

.container > .row {
  width: 100%;
}

.circles{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1){
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2){
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3){
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4){
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5){
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6){
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7){
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8){
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9){
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10){
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0%{
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
  }
  100%{
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
  }
}

/* form */
.text-gray {
  color: var(--colorTextGray);
}

.error-form {
  color: var(--colorRedBright);
  font-weight: 600;
  padding: 0.5rem 0rem;
}

.form-logo {
  padding: 2rem;
}

.form-logo img {
  width: 100%;
}

.login-form-wrapper {
  justify-content: center;
  align-items: center;
}

.login-form {
  background: linear-gradient(155deg, #E8F9FF 10.95%, #AABEDC 61.03%, #618FD5 96.91%);
  border-radius: 40px;
  display: flex;
  box-shadow: 0 13px 50px 5px rgba(8, 37, 79, 0.34);
  max-width: 500px;
  width: 100%;
  padding-right: 2rem;
  padding-left: 2rem;
  padding-top: calc(env(safe-area-inset-bottom) + 1rem);
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
  color: var(--prymery);
}

.login-form-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.login-form-footer {
  margin-top: 2rem;
}

.login-form-footer p {
  font-weight: 700;
  font-size: 0.8rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* кнопки та інпути */
.textarea:focus, .input:focus, .btn:focus, .btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.input-wrapper {
  width: 100%;
  padding-bottom: 1.3rem;
  position: relative;
}

.input-wrapper label.error {
  position: absolute;
  bottom: 2px;
  margin: 0;
  left: 0;
  font-size: 0.8rem;
  color: var(--colorRedBright);
}

.input {
  width: 100%;
  height: 50px;
  border: 0;
  background-color: light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important;
  border-radius: 15px;
  padding: 0.2rem 1rem;
  transition: .2s;
  border: 2px solid transparent;
}

.input::placeholder {
  color: var(--colorGrayInput);
}

.input:focus {
  border-color: var(--colorBlue-2);
}

.input.error:focus {
  border-color: var(--colorRedBright);
}

.link {
  font-weight: 500;
  transition: .2s;
  width: fit-content;
  color: var(--colorBlue);
}

.link:hover {
  text-decoration: unset;
  color: var(--prymery);
}

.btn {
  width: 100%;
  padding: 0.3rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  column-gap: 0.375rem;
  transition: all 0.2s;
  justify-content: center;
  border-radius: 20px;
}

.btn.btn-secondary {
  background-color: var(--colorBlue);
}

.btn.btn-secondary:hover {
  background-color: var(--colorBlueBlackDark);
}

.btn-simple {
  background: transparent;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  gap: 0.375rem;
  border-radius: 50%;
  transition: .2s;
  background: var(--colorGrayBlueLightSecond);
}

.btn-simple .icon {
  display: flex;
  width: 100% !important;
  height: 100% !important;
  align-items: center;
  justify-content: center;
}

.btn-simple svg {
  width: 24px;
  height: 25px;
}

.btn-simple svg path {
  fill: var(--prymery);
}

.btn-simple:hover {
  background-color: var(--colorBlueLight);
}

@media (max-width: 768px) {
  .login-form {
    min-width: 100%;
    border-radius: 0;
    height: 100%;
    padding-top: calc(env(safe-area-inset-bottom) + 1rem);
    padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
  }

  .container {
    max-width: 100%;
    width: 100%;
  }

  .container > .row {
    width: calc(100% + 30px);
  }
}
