/* Add a good modern font at the top of your HTML */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  /* smooth scroll on iOS */
  user-select: none;
}

:root {
  --body-bg-color: #242434;
  --main-bg-color: #181a20;
}

body {
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f172a;
  background: var(--body-bg-color);
  height: 100vh;
  max-height: 100dvh;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  background: var(--main-bg-color);
  padding: 0.5rem 0.5rem 0rem 0.5rem;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  width: 420px;
  overflow: hidden;
  height: 760px;
  transition: all 0.3s ease;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.container::-webkit-scrollbar {
  display: none;
}


.form-section {
  /* position: absolute; */
  width: 100%;
  padding: 0 5px 0 20px;
  /* opacity: 0; */
  /* transform: translateX(120%); */
  transition: all 0.4s cubic-bezier(0.68, 0, 0.27, 1.55);
  /* visibility: hidden; */
  display: none;
}

.form-section.active {
  display: block;
  /* opacity: 1; */
  /* transform: translateX(0); */
  /* visibility: visible; */
}

h2,
h1 {
  margin: 1.8rem 0px 2rem 0px;
  color: #f8fafc;
  font-size: 1.8rem;
  text-align: center;
}

#signupForm {
  height: 500px;
}

#signupForm {
  height: 500px;
}

#loginSection {
  width: calc(100% - 1rem);
}

#signupSection {
  width: calc(100% - 1rem);
}

#forgotPasswordSection {
  width: calc(100% - 1rem);
}

.form-input {
  width: 100%;
  padding: 1.05rem 1.2rem;
  border: 2px solid #334155;
  border-radius: 8px;
  font-size: 15px;
  background: #1e293b;
  background: var(--main-bg-color);
  color: #f8fafc;
  transition: all 0.3s ease;
}

.form-group {
  position: relative;
  margin-bottom: 2.3rem;
  height: 55px;
}

.form-group-login-password {
  margin-bottom: 10px;
}

.form-label {
  position: absolute;
  left: 70px;
  top: 53%;
  transform: translate(-50%, -50%);
  color: #64748b;
  background: transparent;
  padding: 0 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  margin: 0;
  z-index: 1;
  height: 23px;
  font-size: 14px;
}

/* Label Positioning */
#form-label-name {
  left: 58px;
}

#form-label-referral {
  left: 105px;
}

#form-label-passowrd {
  left: 55px;
}

#form-label-creat-passowrd {
  left: 75px;
}

#form-label-confirm-passowrd {
  left: 82px;
}

#form-label-recovery-email {
  left: 90px;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: 5px;
  left: 70px;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  background: var(--main-bg-color);
}

.error-message {
  position: absolute;
  bottom: -20px;
  left: 100%;
  transform: translateX(-0%);
  width: 100%;
  padding: 0px 1px;
  color: #f87171;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  display: none;
  text-align: center;

  background: var(--main-bg-color);
  z-index: 1;
}

.form-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.all-btn {
  width: 100%;
  padding: 16px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  color: white;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn {
  border-radius: 8px;
}

.btn-double {
  border-radius: 8px 50px 50px 8px;
  border-radius: 8px;
}

.Google-login-btn {
  background: white;
  color: #3c4043;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  margin: 15px 0;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.Google-login-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.toggle-form {
  text-align: center;
  margin-top: 1rem;
  color: rgba(116, 116, 116, 0.686);
  font-size: 18px;
  font-weight: 600;
}

.toggle-form a {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  color: #38bdf8;
}

.toggle-form a:hover {
  text-decoration: underline;
}

.toggle-form-forgot-password {
  color: #38bdf8;
  margin: 120px 0px 20px 0px;
}

#forgotPassword-toggle {
  color: #38bdf8;
  margin-top: 130px;
  text-decoration: none;
}

#forgotPassword-toggle:hover {
  text-decoration: underline;
  cursor: pointer;
}

.go-home-text {
  text-align: center;
  color: #94a3b8;
  margin-top: 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.go-home-text:hover {
  color: #3a6ff8;
}

a {
  text-decoration: none;
}

.password-strength {
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.239);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.page-load-box-for-all {
  padding: 30px;
  background-color: #070707a4;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}


.page-load-loader {
  width: 35px;
  aspect-ratio: 1;
  display: grid;
  border-radius: 50%;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.5) 30%, #0000 0 70%, rgba(255, 255, 255, 1) 0) 50%/8% 100%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 30%, #0000 0 70%, rgba(255, 255, 255, 0.75) 0) 50%/100% 8%;
  background-repeat: no-repeat;
  animation: spin-fancy 1s infinite steps(12);
}

.page-load-loader::before,
.page-load-loader::after {
  content: "";
  grid-area: 1/1;
  border-radius: 50%;
  background: inherit;
  opacity: 0.915;
  transform: rotate(30deg);
}

.page-load-loader::after {
  opacity: 0.83;
  transform: rotate(60deg);
}

@keyframes spin-fancy {
  100% {
    transform: rotate(1turn);
  }
}



.success-message {
  color: #22c55e;
  text-align: center;
  margin: 1rem 0;
  display: none;
  animation: fadeIn 0.3s ease;
  position: fixed;
  top: 0px;
  left: 0px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.password-strength {
  height: 4px;
  background: #334155;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}

.error-message {
  position: absolute;
  bottom: -1.8rem;
  /* Position below input */
  left: 0;
  width: 100%;
}

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: white !important;
  /* Optional: white blinking cursor */
}

.password-strength {
  display: none;
}

.note-box {
  width: 100%;
  max-width: 380px;
  background: #e3f2fd;
  color: #333;
  padding: 10px;
  border-left: 4px solid #2196f3;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  font-family: "Poppins", sans-serif;
  margin-bottom: 50px;
}

.note-box p {
  margin: 0;
}

.note-box strong {
  color: #1976d2;
  font-size: 15px;
}

/* email notic */

@media (max-height: 800px) {
  body {
    background: var(--main-bg-color);
  }

  .container {
    box-shadow: 0px 8px 0px #00000000;
  }
}

@media (max-width: 500px) {
  body {
    background: var(--main-bg-color);
  }

  .container {
    box-shadow: 0px 8px 0px #00000000;
  }
}











#confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: #00000080;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: all 0.1s ease;
}

#confirm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#confirm-modal-box {
  background-color: #1c1c1e;
  color: #fff;
  width: 340px;
  max-width: 90%;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  user-select: none;
  font-family: 'Inter', sans-serif;
  padding-bottom: 4px;
  scale: 0.5;
  transition: all 0.1s ease-in;
}

#confirm-modal-overlay.active #confirm-modal-box {
  /* transform: translateY(0); */
  scale: 1;
}


#confirm-title {
  font-size: 18px;
  margin: 24px 20px 10px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

#confirm-message {
  font-size: 15px;
  margin: 0 20px 26px;
  color: #d2d2d2;
  line-height: 1.6;
  font-weight: 400;
}

#confirm-buttons {
  display: flex;
  border-top: 1px solid #3a3a3a;
}

#confirm-buttons button {
  flex: 1;
  padding: 14px 0;
  font-size: 15px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}


#cancel-button {
  color: #c4c4c4;
  border-right: 1px solid #3a3a3a !important;
  border-bottom-left-radius: 18px;
}

#cancel-button:active {
  background-color: #ffffff09;
}

#ok-button {
  border-bottom-right-radius: 18px;
  color: #ff2c14;
}

#ok-button:active {
  background-color: #ff2b140f;
}

.checkBox-con {
  margin: 15px 0;
  font-family: 'Segoe UI', sans-serif;
  color: #dddddd;
  position: relative;
  bottom: 25px;
}

/* ✅ Custom Checkbox Label */
.dark-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  letter-spacing: 0.5px;
  gap: 8px;
  color: #ccccccc3;
}

/* ✅ Hide default checkbox */
.dark-checkbox input[type="checkbox"] {
  display: none;
}

/* ✅ Custom checkbox appearance */
.custom-check {
  width: 18px;
  height: 18px;
  border: 2px solid #33415594;
  border-radius: 4px;
  background-color: #2222228c;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}