/* =========================
   SHARED AUTH STYLES
   Note that this overlaps with the navigation styles.
   ========================= */

/* Header Row */
.auth-header-row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 1em 0;
}

.auth-header-row h2 {
  margin: 0;
}

.auth-header-row .button {
  font-size: 0.8em;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 300px;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none; /* Allows clicking through the notification */
}

.toast-notification.notice {
  border-left: 4px solid #1B7E31;
  color: #1B7E31;
}

.toast-notification.alert {
  border-left: 4px solid #721c24;
  color: #721c24;
}

.toast-notification.show-notification {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.3s ease-out;
}

/* Devise forms - shared styles */
.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.field input[type="email"],
.field input[type="password"],
.field select {
  border: 1px solid #ced4da;
  border-radius: 8px;
}

/* Remember me checkbox styling */
.field input[type="checkbox"] {
  margin-right: 0.5rem;
}

.field input[type="checkbox"] + label {
  display: inline;
  font-weight: normal;
}

.actions input[type="submit"] {
  background: var(--primary-orange);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.actions input[type="submit"]:hover {
  background: #ffb347;
}

/* Links styling */
.shared-links a {
  color: var(--primary-orange);
  text-decoration: none;
}
