/* Email Signup Section */
.signup {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.signup-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  position: relative;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem 0;
  position: relative;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.signup-input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.signup-button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.signup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.signup-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4), 0 8px 24px rgba(59, 130, 246, 0.35);
}

.signup-button:active {
  transform: translateY(0);
}

.signup-button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

.signup-button:disabled::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.signup-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.signup-note::before {
  content: '🔒';
  font-size: 0.6875rem;
}

/* Google auth styles */
.signup-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #fff;
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.signup-google:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.signup-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.signup-divider::before,
.signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.signup-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.signup-auth-email {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.signup-signout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  transition: color 0.2s;
}

.signup-signout:hover {
  color: var(--text-secondary);
}

.signup-button-full {
  width: 100%;
}

/* Success state */
.signup-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  color: #22c55e;
  font-size: 0.9375rem;
}

.signup-success.show {
  display: flex;
  animation: successPop 0.4s ease-out;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.signup-form.hidden {
  display: none;
}

.signup-note.hidden {
  display: none;
}
