body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #6c757d;
  font-family: "Lato", sans-serif;
  background: linear-gradient(180deg, #f3f9f8 0%, #f6fbfb 100%);
}
.password-field .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.toggle-password:hover {
  color: #258aca;
}

.response-message {
  font-weight: bold;
  text-align: center;
  color: #258aca;
  margin: 20px 0 20px 0;
  font-size: 16px;
}

.error-message {
  font-weight: bold;
  text-align: center;
  color: #df2727; 
  margin: 20px 0 20px 0;
  font-size: 16px;
}

/* loader */
#loaderOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 5px solid #def8fe;
  border-top: 5px solid #0141a1;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#otpclass {
  margin-top: 15px;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  gap: 0;
}

.time {
  position: absolute;
  left: 0;
  padding-left: 16px;
}

#resend-otp {
  color: rgb(255, 53, 53);
  font-size: 14px;
  text-decoration: none;
}

#resend-otp:hover {
  color: rgb(251, 21, 21);
}

:root {
  --teal-1: #eaf9f7;
  --teal-2: #d6f3ef;
  --accent: #2aa79a;
  --dark: #0b6b70;
}

/* large card shadow like design */
.card-shadow {
  box-shadow: 0px 30px 30px rgba(0, 255, 242, 0);
}

/* input glow + rounded pill */
.pill {
  border-radius: 30px;
  box-shadow: 0 0 3px 0 rgb(99, 194, 231);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 255, 254, 0.98));
  border: 1px solid rgba(42, 104, 167, 0.08);
}

/* small underline for active tab */
.tab-active {
  border-bottom: 3px solid rgba(41, 167, 154, 0.18);
  color: #0f4e7b;
  font-weight: 600;
}

/* rounded pill button */
.btn-pill {
  background: linear-gradient(180deg, #59a3f3, #337ad1);
  color: white;
  box-shadow: 0 6px 18px rgba(33, 150, 135, 0.16);
}

/* three curves container on the right */
.right-arc {
  position: relative;
  overflow: hidden;
  border-radius: 50px 0 0 50px;
}

/* glowing text effect [stay connected]*/
.glow-text {
  color: #258ACA;
  font-size:26px;
  background-size: 300% 300%;
  background-clip: text;
}

@keyframes glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* login text gradient */
.login-gradient {
  background: #258ACA;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.75rem;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}

.main-card {
  border-radius: 12px !important;
  box-shadow: 0 0 8px 0 rgb(77, 154, 185);
}

#main-form {
  padding: clamp(1rem, 4vw, 3rem);
}

.pill:focus-within {
  border: 3px solid #7aa1c8;
  box-shadow: 0 0 0 4px rgba(122, 200, 191, 0.1);
}

/* 4K Display (2560px and above) */
@media (min-width: 2560px) {
  .main-card {
    transform: scale(1.6);
  }
  .bg-circle-left-1 {
    width: 1280px;
    height: 1280px;
  }
  .bg-circle-left-2 {
    width: 1100px;
    height: 1100px;
  }
  .bg-circle-left-3 {
    width: 940px;
    height: 940px;
  }
  .bg-circle-right-1 {
    width: 1120px;
    height: 1120px;
  }
  .bg-circle-right-2 {
    width: 960px;
    height: 960px;
  }
  .bg-circle-right-3 {
    width: 790px;
    height: 790px;
  }
  .main-card .bg-circle-right-3 {
    width: 290px !important;
    height: 290px !important;
  }
  .logo-img {
    width: clamp(500px, 35vw, 560px);
  }
}

/* 1080p Large Monitor (1920px wide) */
@media (max-width: 2560px) and (min-width: 1920px) {
  .main-card {
    transform: scale(1.3);
  }
  .bg-circle-left-1 {
    width: 1040px;
    height: 1040px;
  }
  .bg-circle-left-2 {
    width: 900px;
    height: 900px;
  }
  .bg-circle-left-3 {
    width: 760px;
    height: 760px;
  }
  .bg-circle-right-1 {
    width: 910px;
    height: 910px;
  }
  .bg-circle-right-2 {
    width: 760px;
    height: 760px;
  }
  .bg-circle-right-3 {
    width: 630px;
    height: 630px;
  }
  .main-card .bg-circle-right-3 {
    width: 250px !important;
    height: 250px !important;
  }
  .logo-img {
    width: clamp(350px, 22vw, 400px);
  }
}

/* Normal Laptop Screens (1366px – 1919px) */
@media (max-width: 1919px) and (min-width: 1366px) {
  .main-card {
    transform: scale(1);
  }
  .bg-circle-left-1 {
    width: 800px;
    height: 800px;
  }
  .bg-circle-left-2 {
    width: 690px;
    height: 690px;
  }
  .bg-circle-left-3 {
    width: 590px;
    height: 590px;
  }
  .bg-circle-right-1 {
    width: 700px;
    height: 700px;
  }
  .bg-circle-right-2 {
    width: 590px;
    height: 590px;
  }
  .bg-circle-right-3 {
    width: 490px;
    height: 490px;
  }
  .main-card .bg-circle-right-3 {
    width: 200px !important;
    height: 200px !important;
  }
  .logo-img {
    width: clamp(250px, 20vw, 300px);
  }
}

/* Small Laptops / 1280px screens */
@media (max-width: 1365px) and (min-width: 1280px) {
  .main-card {
    transform: scale(0.95);
  }
  .bg-circle-left-1 {
    width: 770px;
    height: 770px;
  }
  .bg-circle-left-2 {
    width: 665px;
    height: 665px;
  }
  .bg-circle-left-3 {
    width: 560px;
    height: 560px;
  }
  .bg-circle-right-1 {
    width: 675px;
    height: 675px;
  }
  .bg-circle-right-2 {
    width: 570px;
    height: 570px;
  }
  .bg-circle-right-3 {
    width: 465px;
    height: 465px;
  }
  .main-card .bg-circle-right-3 {
    width: 195px !important;
    height: 195px !important;
  }
  .logo-img {
    width: clamp(200px, 18vw, 250px);
  }
}

/* Tablets Landscape (1024px – 1279px) */
@media (max-width: 1279px) and (min-width: 1024px) {
  .main-card {
    transform: scale(0.8);
    grid-template-columns: 1fr;
  }
  .bg-circle-left-1 {
    width: 680px;
    height: 680px;
  }
  .bg-circle-left-2 {
    width: 580px;
    height: 580px;
  }
  .bg-circle-left-3 {
    width: 480px;
    height: 480px;
  }
  .bg-circle-right-1 {
    width: 590px;
    height: 590px;
  }
  .bg-circle-right-2 {
    width: 500px;
    height: 500px;
  }
  .bg-circle-right-3 {
    width: 400px;
    height: 400px;
  }
  .main-card .bg-circle-right-3 {
    width: 170px !important;
    height: 170px !important;
  }
  .right-arc {
    display: none;
  }
  .logo-img {
    width: clamp(180px, 16vw, 220px);
  }
}

/* Tablets Portrait (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .main-card {
    transform: scale(0.65);
    grid-template-columns: 1fr;
  }
  .bg-circle-left-1 {
    width: 520px;
    height: 520px;
  }
  .bg-circle-left-2 {
    width: 455px;
    height: 455px;
  }
  .bg-circle-left-3 {
    width: 390px;
    height: 390px;
  }
  .bg-circle-right-1 {
    width: 455px;
    height: 455px;
  }
  .bg-circle-right-2 {
    width: 390px;
    height: 390px;
  }
  .bg-circle-right-3 {
    width: 325px;
    height: 325px;
  }
  .main-card .bg-circle-right-3 {
    width: 130px !important;
    height: 130px !important;
  }
  .right-arc {
    display: none;
  }
  .logo-img {
    width: clamp(150px, 15vw, 180px);
  }
}

/* Mobile Landscape (600px – 767px) */
@media (max-width: 767px) and (min-width: 600px) {
  .main-card {
    transform: scale(0.55);
    grid-template-columns: 1fr;
  }
  .bg-circle-left-1 {
    width: 440px;
    height: 440px;
  }
  .bg-circle-left-2 {
    width: 385px;
    height: 385px;
  }
  .bg-circle-left-3 {
    width: 330px;
    height: 330px;
  }
  .bg-circle-right-1 {
    width: 385px;
    height: 385px;
  }
  .bg-circle-right-2 {
    width: 330px;
    height: 330px;
  }
  .bg-circle-right-3 {
    width: 275px;
    height: 275px;
  }
  .main-card .bg-circle-right-3 {
    width: 110px !important;
    height: 110px !important;
  }
  .right-arc {
    display: none;
  }
  .logo-img {
    width: clamp(120px, 12vw, 150px);
  }
}

/* Mobile (480px – 599px) */
@media (max-width: 599px) and (min-width: 480px) {
  .main-card {
    transform: scale(0.48);
    grid-template-columns: 1fr;
  }
  .bg-circle-left-1 {
    width: 384px;
    height: 384px;
  }
  .bg-circle-left-2 {
    width: 336px;
    height: 336px;
  }
  .bg-circle-left-3 {
    width: 288px;
    height: 288px;
  }
  .bg-circle-right-1 {
    width: 336px;
    height: 336px;
  }
  .bg-circle-right-2 {
    width: 288px;
    height: 288px;
  }
  .bg-circle-right-3 {
    width: 240px;
    height: 240px;
  }
  .main-card .bg-circle-right-3 {
    width: 96px !important;
    height: 96px !important;
  }
  .right-arc {
    display: none;
  }
  .logo-img {
    width: clamp(100px, 10vw, 120px);
  }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
  .main-card {
    transform: scale(0.4);
    grid-template-columns: 1fr;
  }
  .bg-circle-left-1 {
    width: 320px;
    height: 320px;
  }
  .bg-circle-left-2 {
    width: 280px;
    height: 280px;
  }
  .bg-circle-left-3 {
    width: 240px;
    height: 240px;
  }
  .bg-circle-right-1 {
    width: 280px;
    height: 280px;
  }
  .bg-circle-right-2 {
    width: 240px;
    height: 240px;
  }
  .bg-circle-right-3 {
    width: 200px;
    height: 200px;
  }
  .main-card .bg-circle-right-3 {
    width: 80px !important;
    height: 80px !important;
  }
  .right-arc {
    display: none;
  }
  .logo-img {
    width: clamp(80px, 8vw, 100px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: var(--final-opacity); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

.material-icons-outlined {
  font-size: 20px;
}

.background-pattern {
  background-color: #f0f7fd;
}

/* Background circles - responsive positioning */
.bg-circle-left-1 {
  position: fixed;
  left: clamp(-25rem, -30vw, -15rem);
  top: clamp(-25rem, -30vw, -15rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #67bfef, #aad2fd);
  opacity: 0.4;
}

.bg-circle-left-2 {
  position: fixed;
  left: clamp(-22rem, -27vw, -13rem);
  top: clamp(-22rem, -27vw, -13rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #1f87e2, #aad2fd);
  opacity: 0.6;
}

.bg-circle-left-3 {
  position: fixed;
  left: clamp(-19rem, -24vw, -11rem);
  top: clamp(-19rem, -24vw, -11rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #3680db, #6fb3fc);
  opacity: 1;
}

.bg-circle-right-1 {
  position: fixed;
  right: clamp(-20rem, -25vw, -12rem);
  bottom: clamp(-20rem, -25vw, -12rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #66beee, #dcfaf8);
  opacity: 0.2;
}

.bg-circle-right-2 {
  position: fixed;
  right: clamp(-17rem, -22vw, -10rem);
  bottom: clamp(-17rem, -22vw, -10rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #1c7ed3, #cff0fb);
  opacity: 0.3;
}

.bg-circle-right-3 {
  position: fixed;
  right: clamp(-14rem, -19vw, -8rem);
  bottom: clamp(-14rem, -19vw, -8rem);
  border-radius: 50%;
  background: linear-gradient(to bottom, #016ae2, #b6e1ff);
  opacity: 0.5;
}

/* Form inner circle - consistent sizing */
.main-card .bg-circle-right-3 {
  position: absolute;
  right: clamp(-6rem, -12vw, -4rem);
  top: clamp(-6rem, -12vw, -4rem);
  bottom: auto;
  width: clamp(180px, 25vw, 350px) !important;
  height: clamp(180px, 25vw, 350px) !important;
  opacity: 0.3;
  z-index: -1;
}

/* Right panel curves */
.curve-1 {
  position: absolute;
  top: 0;
  border-radius: 50% 0 0 50%;
  width: 120%;
  height: 100%;
  right: -20%;
  background: linear-gradient(to bottom, #3c8ee1, #97d7fa);
  opacity: 0.25;
}

.curve-2 {
  position: absolute;
  top: 0;
  border-radius: 50% 0 0 50%;
  width: 100%;
  height: 100%;
  right: -15%;
  background: linear-gradient(to bottom, #096cbd, #97d7fa);
  opacity: 0.3;
}

.curve-3 {
  position: absolute;
  top: 0;
  border-radius: 50% 0 0 50%;
  width: 80%;
  height: 100%;
  right: -10%;
  background: linear-gradient(to bottom, #014fc3, #97d7fa);
  opacity: 0.35;
}
