/* ========================================================
   Auth + Account pages
   Loaded after styles.css — same tokens, dark themed
   ======================================================== */

.page-auth main, body:has(.auth-shell) main { background: linear-gradient(180deg, var(--navy) 0%, #0d1838 100%); min-height: 100vh; }

/* ---------- AUTH SHELL ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem 1rem 4rem;
  background: linear-gradient(180deg, var(--navy) 0%, #0d1838 100%);
  color: #fff;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.auth-card__brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.auth-card__welcome { color: rgba(255,255,255,.65); font-size: .92rem; line-height: 1.55; margin: .85rem 0 1.5rem; }

.auth-tabs { display: flex; background: rgba(0,0,0,.25); border-radius: var(--radius-pill); padding: 4px; margin-bottom: 1.25rem; }
.auth-tab {
  flex: 1; background: transparent; border: 0; color: rgba(255,255,255,.65);
  padding: .55rem 1rem; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600; cursor: pointer; transition: all var(--t-base);
}
.auth-tab.is-active { background: rgba(237,185,94,.18); color: var(--gold); }
.auth-tab:hover:not(.is-active) { color: rgba(255,255,255,.85); }

.btn--google {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  width: 100%;
  background: #fff;
  color: #1a1a1a;
  border: 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: all var(--t-base);
}
.btn--google:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.btn--google:disabled { opacity: .55; cursor: wait; }

.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: rgba(255,255,255,.4); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }

.auth-error {
  background: rgba(220,38,38,.14);
  border: 1px solid rgba(220,38,38,.4);
  color: #fecaca;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .88rem;
  margin-bottom: 1rem;
}

#login-form .field { margin-bottom: 1rem; }
#login-form .field span { display: block; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: .35rem; }
#login-form .field input { width: 100%; }

.auth-actions { margin-top: 1.25rem; }
.auth-card__reset { text-align: center; margin: 1rem 0 0; font-size: .85rem; }
.auth-card__reset a { color: rgba(255,255,255,.7); }
.auth-card__reset a:hover { color: var(--gold); }

.auth-card__footer { text-align: center; margin: 1.5rem 0 0; font-size: .8rem; color: rgba(255,255,255,.5); }
.auth-card__footer a { color: inherit; text-decoration: none; }
.auth-card__footer a:hover { color: var(--gold); }

/* ---------- ACCOUNT ---------- */
.account {
  min-height: 100vh;
  padding: 7rem 0 4rem;
  background: linear-gradient(180deg, var(--navy) 0%, #0d1838 70%, #0c1a32 100%);
  color: #fff;
}
.account__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 2.25rem;
}
.account__profile { display: flex; align-items: center; gap: 1.1rem; }
.account__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.15); }
.account__hello { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; letter-spacing: .15em; text-transform: uppercase; }
.account__head h1 { margin: .15rem 0; font-size: 1.6rem; color: #fff; }
.account__email { color: rgba(255,255,255,.55); font-size: .88rem; margin: 0; }

.btn--ghost-dark {
  background: transparent;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  padding: .65rem 1.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all var(--t-base);
}
.btn--ghost-dark:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.btn--gold-sm {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gold);
  color: var(--navy);
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all var(--t-base);
}
.btn--gold-sm:hover { filter: brightness(.94); transform: translateY(-1px); }

.account__tabs { display: flex; gap: .35rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.account__tab {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base);
}
.account__tab:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.account__tab.is-active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.card__head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.card__body { padding: 1.5rem; }

.empty { color: rgba(255,255,255,.55); margin: 0; font-size: .92rem; }
.empty a { color: var(--gold); }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: .28rem .7rem; border-radius: var(--radius-pill); }
.badge--phase { background: rgba(237,185,94,.16); color: var(--gold); border: 1px solid rgba(237,185,94,.3); }

.data-table {
  width: 100%; border-collapse: collapse;
  color: rgba(255,255,255,.85);
}
.data-table th, .data-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .92rem; }
.data-table th { color: rgba(255,255,255,.5); font-weight: 600; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table--ghost { opacity: .55; margin-top: 1rem; }
.data-table--ghost em { color: rgba(255,255,255,.4); font-size: .8rem; }

.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .7rem; border-radius: var(--radius-pill); }
.pill--pending  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); }
.pill--paid     { background: rgba(34,197,94,.16); color: #86efac; }
.pill--upcoming { background: rgba(237,185,94,.14); color: var(--gold); }
.pill--open     { background: rgba(59,130,246,.18); color: #93c5fd; }
.pill--confirmed{ background: rgba(34,197,94,.16); color: #86efac; }

.trip-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.5rem; margin: 0 0 1.5rem; }
.trip-info dt { color: rgba(255,255,255,.55); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; align-self: center; }
.trip-info dd { margin: 0; color: rgba(255,255,255,.92); font-size: .95rem; }

@media (max-width: 600px) {
  .account__head { flex-direction: column; align-items: flex-start; }
  .trip-info dl { grid-template-columns: 1fr; gap: .15rem; }
  .trip-info dt { margin-top: .8rem; }
}
