/* OTP Grove auth pages — hero gradient aligned with marketing landing */

@keyframes auth-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auth-float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

.auth-card {
  animation: auth-slide-up 0.5s ease-out;
  color: #1e293b;
}

.auth-gradient-bg {
  background: #ffffff;
  color: #1e293b;
}

.auth-floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
  animation: auth-float 20s infinite ease-in-out;
  pointer-events: none;
}

.auth-input-focus:focus {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
}

.auth-input-focus-reg:focus {
  border-left-color: #4f46e5 !important;
  border-left-width: 3px !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-remember-label {
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
  line-height: 1.25;
}

.auth-signup-prompt {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.auth-signup-link {
  color: #7c3aed;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-signup-link:hover {
  color: #6d28d9;
  text-decoration: underline;
}

.auth-custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.auth-custom-checkbox:checked {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: #7c3aed;
}

.auth-custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.auth-google-btn {
  display: flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-google-btn:hover {
  background-color: #f3f4f6;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.auth-or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
}

.auth-or-line {
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-or-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #595959;
  letter-spacing: 0.06em;
}

.auth-card input::placeholder {
  color: #475569;
  opacity: 1;
}

.auth-alert-error {
  color: #991b1b !important;
  background-color: #fef2f2 !important;
  border: 1px solid #f87171 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: block !important;
}

.auth-field-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
}

.auth-input-wrap.has-error input,
.auth-input-wrap.has-error select {
  border-color: #f87171 !important;
}

.auth-btn-submit {
  width: 100%;
  height: 52px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(to right, #7c3aed, #4f46e5);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  transition: all 0.2s ease;
}

.auth-btn-submit:hover {
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.auth-btn-submit--register {
  height: 48px;
  border-radius: 10px;
  background: #7c3aed;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.auth-referral-toggle {
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  padding: 0.5rem 0.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.auth-referral-toggle:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.auth-hidden {
  display: none !important;
}
