/* Reset basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Rainbow gradient background */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695, #ff6ec4);
  background-size: 800% 800%;
  animation: rainbow 15s ease infinite;
  padding: 20px;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Card container */
.auth-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #fff;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #f1f1f1;
  margin-bottom: 30px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #ddd;
}

.input-group input {
  width: 100%;
  padding: 12px 12px 12px 45px;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  background: #fff;
}

.input-group .toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  cursor: pointer;
}

.auth-btn {
  padding: 12px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.auth-btn:hover {
  background: #333;
  color: #fff;
}

.auth-footer {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #fff;
}

.auth-footer a {
  color: #fff;
  text-decoration: underline;
}

.auth-footer a:hover {
  opacity: 0.8;
}

/* Error message */
.error-message {
  background: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #ff0000;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 20px;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
}

@media (max-width: 500px) {
  .auth-card {
    padding: 30px 20px;
  }
}
