/* === Rainbow background === */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(270deg, #ff7e5f, #feb47b, #86a8e7, #7f7fd5);
  background-size: 800% 800%;
  animation: rainbowBG 20s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: border-box;
}

@keyframes rainbowBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.auth-wrapper {
  width: 100%;
  padding: 20px;
}

.auth-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 450px;
  margin: auto;
  padding: 40px 30px;
  color: #fff;
}

.auth-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 26px;
  margin: 5px 0;
}

.auth-subtitle {
  font-size: 16px;
  color: #eee;
}

.auth-form .input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.auth-form .input-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 15px;
}

.auth-form .input-group input,
.auth-form .input-group select {
  width: 100%;
  padding: 12px 12px 12px 42px; /* extra left padding for icon */
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  outline: none;
}

.auth-form .input-group input::placeholder {
  color: #ddd;
}

.auth-form .input-group select {
  appearance: none;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #7f7fd5, #86a8e7);
  border: none;
  border-radius: 30px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #feb47b, #ff7e5f);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #fff;
  text-decoration: underline;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #fff;
}

.error-message {
  background: rgba(255, 0, 0, 0.3);
  border-left: 4px solid red;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  color: #fff;
}

.success-message {
  background: rgba(0, 255, 0, 0.3);
  border-left: 4px solid limegreen;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  color: #fff;
}

.referral-message {
  background: rgba(0, 128, 255, 0.3);
  border-left: 4px solid #00f;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
}

@media (max-width: 500px) {
  .auth-card {
    padding: 30px 20px;
  }

  .auth-title {
    font-size: 22px;
  }

  .auth-subtitle {
    font-size: 14px;
  }
}
