<%= icon 'users', class: "h-12 w-12 text-primary-content" %>

Join <%= @invitation.family.name %>!

You've been invited by <%= @invitation.invited_by.email %> to join their family. Create your account to accept the invitation and start sharing location data.

<%= icon 'info', class: "h-5 w-5 mr-2" %> Your email (<%= @invitation.email %>) will be used for this account

What benefits does joining a family bring?

<%= icon 'map-pin', class: "h-6 w-6 text-info-content" %>

Share Location Data

Share your location history with family members and see where they are

<%= icon 'chart-column', class: "h-6 w-6 text-secondary-content" %>

Track your location history

Access interactive maps and personal travel statistics

<%= icon 'heart', class: "h-6 w-6 text-success-content" %>

Stay Connected

Keep track of your loved ones' travels and adventures in real-time

<%= icon 'shield-check', class: "h-6 w-6 text-warning-content" %>

Full Control & Privacy

You control what and how long you share and can leave the family anytime

Invitation Details

Family: <%= @invitation.family.name %>
Invited by: <%= @invitation.invited_by.email %>
Your email: <%= @invitation.email %>
Expires: <%= @invitation.expires_at.strftime('%b %d, %Y') %>
<% if user_signed_in? %> <%= link_to accept_family_invitation_path(token: @invitation.token), method: :post, class: "btn btn-success btn-lg w-full text-lg shadow-lg" do %> ✓ Accept Invitation & Join Family <% end %>

Logged in as <%= current_user.email %> · <%= link_to destroy_user_session_path, method: :delete, class: "link link-info" do %> Logout <% end %>

<% else %> <%= link_to new_user_registration_path(invitation_token: @invitation.token), class: "btn btn-primary btn-lg w-full text-lg shadow-lg" do %> Create Account & Join Family → <% end %>

Already have an account?

<%= link_to new_user_session_path(invitation_token: @invitation.token), class: "link link-info font-medium" do %> Sign in to accept invitation <% end %>
<% end %>

Not interested? You can simply close this page.