/* colors */
html,
body {
  font-family: 'Cairo', sans-serif;
  background: #3399ff;
  margin: 0;
  color: #333;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f3fafd;
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-family: 'Cairo', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  /* Remove background color */
  z-index: 0;
  /* Set z-index to 0 */
}

form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 100%;
  max-width: 400px;
  background-color: #FFF;
  margin: 0;
  padding: 1em;
  box-sizing: border-box;
  border: solid 1px #DDD;
  border-radius: .5em;
  font-family: 'Cairo', sans-serif;
  z-index: 1;
  /* Ensure form is above particles */
}

form .svgContainer {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1em;
  border-radius: 50%;
  pointer-events: none;
}

form .svgContainer div {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-radius: 50%;
  padding-bottom: 100%;
}

form .svgContainer .mySVG {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

form .svgContainer:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: inherit;
  height: inherit;
  box-sizing: border-box;
  border: solid 2.5px #217093;
  border-radius: 50%;
}

form .inputGroup {
  margin: 0 0 1em;
  padding: 0;
  position: relative;
}

form .inputGroup:last-of-type {
  margin-bottom: 0;
}

form label {
  margin: 0 0 8px;
  display: block;
  font-size: 1.20em;
  color: #217093;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}

form input[type='text'],
form input[type="text"],
form input[type="number"],
form input[type="url"],
form input[type="search"],
form input[type="password"] {
  display: block;
  margin: 0;
  padding: 0 0.8em 0;
  background-color: #f3fafd;
  border: solid 2px #217093;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  font-size: 1.4em;
  color: #353538;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  transition: box-shadow .2s linear, border-color .25s ease-out;
}

form input[type='text']:focus,
form input[type="text"]:focus,
form input[type="number"]:focus,
form input[type="url"]:focus,
form input[type="search"]:focus,
form input[type="password"]:focus {
  outline: none;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, .1);
  border: solid 2px #4eb8dd;
}

form button {
  display: block;
  margin: 0;
  background-color: #217093;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  width: 100%;
  height: 50px;
  font-size: 1.55em;
  color: #FFF;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  transition: background-color .2s ease-out;
}

form button:hover,
form button:active {
  background-color: #3696c0;
}

form .inputGroup1 .helper {
  position: absolute;
  z-index: 1;
  font-family: 'Cairo', sans-serif;
}

form .inputGroup1 .helper1 {
  top: 0;
  left: 0;
  transform: translate(1em, 2.2em) scale(1);
  transform-origin: 0 0;
  color: #217093;
  font-size: 1.55em;
  font-weight: 400;
  opacity: .65;
  pointer-events: none;
  transition: transform .2s ease-out, opacity .2s linear;
}

form .inputGroup1.focusWithText .helper {
  transform: translate(1em, 1.55em) scale(.6);
  opacity: 1;
}

form .inputGroup1 input[type="text"] {
  padding: .5em 1em .5em;
}

form .inputGroup2 input[type="password"] {
  padding: .5em 1em 0.5em;
}



.radio-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: 'Cairo', sans-serif;


}

.radio-group input[type="radio"] {
  display: none;
  /* Hide the radio buttons */


}

.radio-group label {
  display: inline-block;
  padding: 2px 20px;
  background-color: #DDF1FA;
  /* Background color for radio button */
  border-radius: 5px;
  cursor: pointer;

}

.radio-group input[type="radio"]:checked+label {
  background-color: #217093;
  /* Background color when radio button is checked */
  color: white;
}

.flash-messages {
  list-style-type: none;
  font-family: 'Cairo', sans-serif;
  padding: 10px;
  margin: 0;
  background-color: #f44336;
  /* Red background color */
  color: white;
  /* White text color */
  opacity: 1;
  /* Initially visible */
  transition: opacity 1s ease-in-out;
  /* Fade out transition */
  position: fixed;
  /* Fixed position */
  top: 0;
  /* Place at the top */
  width: 100%;
  /* Full width */
  z-index: 999;
  /* Ensure it's above other elements */
  text-align: center;
  /* Center align text */
}

.flash-messages.fade-out {
  opacity: 0;
  /* Set opacity to 0 to fade out */
}

.flash-messages li {
  margin-bottom: 5px;
}




form .inputGroup2 #showPasswordToggle {
  display: block;
  padding: 0 0 0 1.7em;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1em;
}

form .inputGroup2 #showPasswordToggle input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

form .inputGroup2 #showPasswordToggle .indicator {
  margin-top: 7px;
  position: absolute;
  top: 0;
  left: 0;
  height: .85em;
  width: .85em;
  background-color: #f3fafd;
  border: solid 2px #217093;
  border-radius: 3px;
}

form .inputGroup2 #showPasswordToggle .indicator:after {
  content: "";
  position: absolute;
  left: .25em;
  top: .095em;
  width: .2em;
  height: .5em;
  border: solid #217093;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  visibility: hidden;
}

form .inputGroup2 #showPasswordToggle input:checked~.indicator:after {
  visibility: visible;
}

form .inputGroup2 #showPasswordToggle input:focus~.indicator,
form .inputGroup2 #showPasswordToggle input:hover~.indicator {
  border-color: #4eb8dd;
}

form .inputGroup2 #showPasswordToggle input:disabled~.indicator {
  opacity: .5;
}

form .inputGroup2 #showPasswordToggle input:disabled~.indicator:after {
  visibility: hidden;
}

.telegram-link {
  display: flex;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #217093;
  /* Your preferred color */
  transition: color 0.3s, transform 0.3s;
}

#loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-text h3 {
  color: #217093;
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
}

.loading-text p {
  color: #666;
  margin: 5px 0 0;
  font-size: 0.9em;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #217093;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  #loading-indicator {
    padding: 20px 30px;
  }

  .spinner {
    width: 40px;
    height: 40px;
  }

  .loading-text h3 {
    font-size: 1.1em;
  }

  .loading-text p {
    font-size: 0.85em;
  }
}

/* Ad Container Styles */
.ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  min-height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.top-ad {
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .ad-container {
    margin: 10px auto;
    min-height: 60px;
  }
}