/* Register page specific styles */

/* Auth card - slightly wider for register form */
.auth-card {
  max-width: 520px;
}

/* Group invitation banner */
.invitation-banner {
  background: linear-gradient(135deg, var(--bg-gradient-2) 0%, var(--bg-light-periwinkle) 100%);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.invitation-banner p {
  margin: 0 0 8px 0;
  color: var(--text-dark);
  font-size: 15px;
}

.invitation-banner strong {
  color: var(--primary-purple);
}

.invitation-note {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.invitation-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-gray);
}

.invitation-note a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
}

.invitation-note a:hover {
  color: var(--primary-purple-dark);
}

/* Password hint */
.password-hint {
  position: relative;
}

.info-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--text-light-gray);
  cursor: help;
  transition: stroke 0.2s;
}

.info-icon:hover {
  stroke: var(--primary-purple);
}

.password-requirements {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-gray);
  display: none;
}

.password-requirements.show {
  display: block;
}

.password-requirements ul {
  margin: 0;
  padding-left: 20px;
}

.password-requirements li {
  margin-bottom: 4px;
}

/* Alternative action */
.auth-alt-action {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.auth-alt-action p {
  color: var(--text-gray);
  font-size: 14px;
  margin: 0 0 12px 0;
}

.auth-alt-action a {
  color: var(--primary-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-alt-action a:hover {
  color: var(--primary-purple-dark);
}

/* Form errors */
.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  color: #dc2626;
  font-size: 14px;
}

/* Message popups */
.message-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.message-popup.success {
  border-left: 4px solid #10b981;
}

.message-popup.error {
  border-left: 4px solid #ef4444;
}

.message-popup.warning {
  border-left: 4px solid #f59e0b;
}

.message-popup.info {
  border-left: 4px solid #3b82f6;
}

.message-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--text-light-gray);
  line-height: 1;
  margin-left: 12px;
}

.message-close:hover {
  color: var(--text-dark);
}
