/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto";
}

/* Hide Scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, #2b2b2b, #111);
  overflow-x: hidden;
  overflow-y: auto;
  color: #fff;
  padding: 30px 15px;
}

/* ================= FLOATING BACKGROUND ================= */

.floating-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.floating-overlay span {
  position: absolute;
  bottom: -50px;
  width: 12px;
  height: 12px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  animation: floatUp 18s linear infinite;
}

.floating-overlay span:nth-child(1) {
  left: 10%;
  animation-duration: 15s;
}
.floating-overlay span:nth-child(2) {
  left: 20%;
  animation-duration: 18s;
}
.floating-overlay span:nth-child(3) {
  left: 35%;
  animation-duration: 13s;
}
.floating-overlay span:nth-child(4) {
  left: 50%;
  animation-duration: 22s;
}
.floating-overlay span:nth-child(5) {
  left: 65%;
  animation-duration: 16s;
}
.floating-overlay span:nth-child(6) {
  left: 75%;
  animation-duration: 20s;
}
.floating-overlay span:nth-child(7) {
  left: 85%;
  animation-duration: 17s;
}
.floating-overlay span:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
}

@keyframes floatUp {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

/* ================= FORM CONTAINER ================= */

#multiStepForm {
  width: 490px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(202, 168, 74, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.5s ease;
  margin: auto;
}

#multiStepForm::-webkit-scrollbar {
  display: none;
}

/* Logo Section */
.logo-section-signup {
  text-align: center;
  margin-bottom: 15px;
}

.logo-section-signup img {
  height: 45px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(202, 168, 74, 0.3));
}

/* Dynamic Content Section */
.content {
  text-align: center;
  margin-bottom: 20px;
}

.content h1 {
  font-family: "Rufina";
  font-weight: 600;
  font-size: 1.5rem;
  transform: translateY(-8px);
  letter-spacing: 1px;
  margin-bottom: 5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content p {
  letter-spacing: 0.5px;
  font-size: 12px;
  color: #d9d9d9;
  font-weight: 300;
  margin: 0;
}

/* ================= PROGRESS ================= */

.form-progress {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: 0.3s;
}

.step-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  transition: 0.3s;
}

.progress-step.active .step-number {
  background: linear-gradient(135deg, #caa84a, #e6c35c);
  color: #000;
  box-shadow: 0 0 15px rgba(202, 168, 74, 0.4);
}

.progress-step.active .step-label {
  color: #d4af37;
  font-weight: 500;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  margin: 0 6px;
  align-self: flex-start;
  margin-top: 15px;
}

.progress-line.active {
  background: linear-gradient(90deg, #caa84a, #e6c35c);
}

/* ================= FORM STEPS ================= */

.form-step {
  display: none;
  position: relative;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(202, 168, 74, 0.3);
  color: #caa84a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: #caa84a;
  transform: rotate(90deg);
}

.close-btn svg:hover {
  fill: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= INPUTS ================= */

.input-row {
  display: flex;
  gap: 12px;
}

.input-group {
  flex: 1;
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(42, 42, 42, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-weight: 300;
}

.otp-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(42, 42, 42, 0.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  font-weight: 300;
  transform: translateY(-3px);
  text-align: center;
  margin-bottom: -8px;
}

.otp-input::placeholder {
  text-align: center;
}

input:focus {
  outline: none;
  border-color: #caa84a;
  background: rgba(42, 42, 42, 0.8);
  box-shadow:
    0 0 0 3px rgba(202, 168, 74, 0.15),
    0 4px 12px rgba(202, 168, 74, 0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 30px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.toggle-password:hover svg {
  fill: #caa84a;
}

.toggle-password.active svg {
  fill: #d4af37;
}

/* ================= BUTTONS ================= */
.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.next-btn-1,
.next-btn {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #caa84a 0%, #e6c35c 100%);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  margin-bottom: 10px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.next-btn {
  margin-bottom: 0;
  flex: 1;
}

.verify-btn {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #caa84a 0%, #e6c35c 100%);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  transition: 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

/* Shimmer Effect - Hidden by default */
.verify-btn::before,
.next-btn-1::before,
.next-btn::before,
.back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
}

/* Shimmer animation on hover */
.verify-btn:hover::before,
.next-btn-1:hover::before,
.next-btn:hover::before,
.back-btn:hover::before {
  animation: shimmer 1s infinite ease-in-out;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.verify-btn:hover,
.next-btn-1:hover,
.next-btn:hover,
.back-btn:hover {
  transform: translateY(-2px);
}

.back-btn {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: transparent;
  color: #d4af37;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

/* ================= RESEND OTP ================= */

.resend-otp {
  text-align: center;
  letter-spacing: 0.5px;
  font-size: 12px;
  font-weight: 300;
  transform: translateY(8px);
}

.resend-otp a {
  color: #d4af37;
  text-decoration: none;
}

.resend-otp a:hover {
  color: #e6c35c;
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 600px) {
  #multiStepForm {
    width: 100%;
    padding: 24px 20px;
  }

  .content h1 {
    font-size: 1.5rem;
  }
}

/* ==================== ALERT MESSAGE ============ */
.modal-alert {
  width: 100%;
  margin-top: -15px;
  margin-bottom: 20px;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.modal-alert.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.modal-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.modal-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-top: 2px;
}

.modal-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-alert-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.modal-alert-message {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

/* Error Style */
.modal-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-alert.error .modal-alert-icon {
  background: rgba(239, 68, 68, 0.15);
}

.modal-alert.error .modal-alert-title {
  color: #ef4444;
}

.modal-alert.error .modal-alert-message {
  color: rgba(239, 68, 68, 0.8);
}

/* Success Style */
.modal-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.modal-alert.success .modal-alert-icon {
  background: rgba(34, 197, 94, 0.15);
}

.modal-alert.success .modal-alert-title {
  color: #22c55e;
}

.modal-alert.success .modal-alert-message {
  color: rgba(34, 197, 94, 0.8);
}

/* Warning Style */
.modal-alert.warning {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.modal-alert.warning .modal-alert-icon {
  background: rgba(234, 179, 8, 0.15);
}

.modal-alert.warning .modal-alert-title {
  color: #eab308;
}

.modal-alert.warning .modal-alert-message {
  color: rgba(234, 179, 8, 0.8);
}
