/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1e3c72, #2a5298);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
  color: #fff;
}

/* Background Blobs */
.blob, .blob2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
}
.blob {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle at 30% 30%, #00d4ff, transparent 70%);
  animation: blobMove 20s infinite alternate;
}
.blob2 {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle at 30% 30%, #0077ff, transparent 70%);
  animation: blobMove2 25s infinite alternate;
}

/* Card */
.register-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: 20px;
  width: 360px;
  box-shadow: 0px 8px 25px rgba(0,0,0,0.5);
  text-align: center;
  z-index: 2;
}

.register-card .logo img {
  width: 80px;
  margin-bottom: 1rem;
}

.register-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: bold;
}

/* Form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-form input {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
  transition: 0.3s;
  font-size: 0.95rem;
}
.register-form input:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: 0px 0px 8px rgba(0,212,255,0.7);
}

/* Brighter placeholders */
::placeholder {
  color: #e6e6e6;
  opacity: 1;
  font-weight: 500;
}

/* OTP Row */
.otp-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.otp-row input {
  flex: 1;
}
.otp-row .btn.small {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, #00d4ff, #0077ff);
  color: #fff;
  transition: all 0.3s ease;
}
.otp-row .btn.small.reset {
  
  background: #ff4747;

}
.otp-row .btn.small:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Phone Row */
.phone-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.phone-row .country-code {
  background: rgba(255,255,255,0.15);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}
.phone-row input {
  flex: 1;
}

/* Submit Button */
.btn.submit {
  background: linear-gradient(90deg, #f9d423, #ff4e50);
  padding: 0.9rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #111;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn.submit:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 15px rgba(249, 212, 35, 0.7);
}

/* Sign In */
.signin-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.signin-link a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: bold;
}
.signin-link a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes blobMove {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(200px, 200px) scale(1.4); }
}
@keyframes blobMove2 {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(-200px, -200px) scale(1.3); }
}


@media (max-width: 768px) {
  /* Make card scale properly */
  .register-card {
    width: 90%;
  }

  /* OTP Row adjustments */
  .otp-row {
    flex-wrap: wrap; /* allow wrapping if needed */
    gap: 0.5rem;
  }

  .otp-row input {
    flex: 1 1 100%; /* take full width */
    min-width: 0;
  }

  /* Buttons side by side but responsive */
  .otp-row .btn.small {
    flex: 1;                  /* equal width for both */
    min-width: 100px;          /* enough to fit text */
    font-size: 0.85rem;
    padding: 0.7rem;
    white-space: nowrap;       /* prevent breaking text */
  }

  .otp-row .btn.small.reset {
    background: #ff4747;
  }
}

@media (max-width: 480px) {
  .register-card {
    width: 95%;
    padding: 0.8rem;
  }

  .otp-row {
    flex-direction: column; /* stack in very small screens */
  }

  .otp-row .btn.small {
    width: 100%;
    font-size: 0.9rem;
  }

  .otp-row input {
    width: 100%;
  }
}
