/* ============================================================
   WORLDS OF WONDER — Portal / Auth Stylesheet
   Used by: portal/login.html, register.html, my-bookings.html,
            profile.html, passport.html
   ============================================================ */

/* ─── Auth page layout (login / register) ─────────────────── */
.portal-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT — Brand panel */
.portal-brand {
  position: relative;
  background: linear-gradient(160deg, #001840 0%, #003380 50%, #0055b3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  overflow: hidden;
}
.portal-brand--register {
  background: linear-gradient(160deg, #0a0022 0%, #2e0072 50%, #5b21b6 100%);
}
.portal-brand-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(0,170,221,.18), transparent),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(245,168,0,.12), transparent);
  pointer-events: none;
}
.portal-brand-inner {
  position: relative; z-index: 1;
  max-width: 420px;
}
.portal-brand-logo { display: block; margin-bottom: 36px; }
.portal-logo-img {
  /* HARD ADOPTED: real logo.png — NO filter that alters colours, NO modifications */
  height: 64px; width: auto; object-fit: contain;
  filter: none !important;
}
.portal-brand-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.portal-brand-accent { color: #F5A800; }
.portal-brand-sub {
  font-size: 16px; color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: 36px;
}
.portal-brand-perks { display: flex; flex-direction: column; gap: 14px; }
.portal-perk {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 500;
}
.portal-perk-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* RIGHT — Form panel */
.portal-form-panel {
  background: #f7f9fc;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
  overflow-y: auto;
}
.portal-form-wrap {
  width: 100%; max-width: 460px;
}
.portal-form-header { margin-bottom: 32px; }
.portal-form-title {
  font-family: 'Nunito', sans-serif;
  font-size: 30px; font-weight: 900;
  color: #0a1020; margin-bottom: 6px;
}
.portal-form-sub { font-size: 15px; color: #6b7280; }

/* Google button */
.portal-google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 13px 20px;
  background: white; border: 2px solid #e5edf8;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  color: #374151; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.portal-google-btn:hover {
  border-color: #4285F4;
  box-shadow: 0 4px 16px rgba(66,133,244,.15);
}

/* Divider */
.portal-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  color: #9ca3af; font-size: 13px;
}
.portal-divider::before,
.portal-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5edf8;
}

/* Form fields */
.portal-field {
  display: flex; flex-direction: column; margin-bottom: 18px;
}
.portal-label {
  font-size: 13px; font-weight: 700; color: #374151;
  margin-bottom: 6px; letter-spacing: .01em;
}
.portal-input {
  border: 2px solid #e5edf8; border-radius: 12px;
  padding: 12px 16px; font-size: 15px;
  font-family: inherit; color: #0a1020;
  background: white; outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.portal-input:focus {
  border-color: #0055b3;
  box-shadow: 0 0 0 4px rgba(0,85,179,.08);
}
.portal-input::placeholder { color: #9ca3af; }
.portal-input:disabled { background: #f4f7fb; cursor: not-allowed; }

/* Input with eye button */
.portal-input-wrap { position: relative; }
.portal-input-wrap .portal-input { padding-right: 46px; }
.portal-eye-btn {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 4px;
  display: flex; align-items: center;
  transition: color .15s;
}
.portal-eye-btn:hover { color: #374151; }

/* Input with prefix (+91) */
.portal-input-prefix-wrap {
  display: flex; align-items: stretch;
  border: 2px solid #e5edf8; border-radius: 12px;
  overflow: hidden; background: white;
  transition: border-color .18s, box-shadow .18s;
}
.portal-input-prefix-wrap:focus-within {
  border-color: #0055b3;
  box-shadow: 0 0 0 4px rgba(0,85,179,.08);
}
.portal-input-prefix {
  padding: 0 14px; background: #f4f7fb;
  border-right: 1px solid #e5edf8;
  font-size: 14px; font-weight: 700; color: #6b7280;
  display: flex; align-items: center; flex-shrink: 0;
}
.portal-input--prefixed {
  border: none !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  flex: 1;
}
.portal-input--prefixed:focus { outline: none; }

/* Field errors */
.portal-field-err {
  color: #dc2626; font-size: 12px; margin-top: 5px; font-weight: 600;
}

/* Error banner */
.portal-error-banner {
  margin-top: 14px; padding: 12px 16px;
  background: #fef2f2; color: #dc2626;
  border: 1px solid #fecaca; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; line-height: 1.5;
}

/* Checkbox */
.portal-checkbox {
  width: 18px; height: 18px; border: 2px solid #e5edf8;
  border-radius: 5px; accent-color: #0055b3;
  cursor: pointer; flex-shrink: 0; margin-top: 1px;
}
.portal-checkbox-label {
  font-size: 13.5px; color: #4b5563; line-height: 1.5; cursor: pointer;
}

/* Password strength */
.portal-pw-strength {
  height: 4px; background: #e5edf8; border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.portal-pw-bar {
  height: 100%; width: 0%; border-radius: 2px;
  transition: width .3s, background .3s;
}
.portal-pw-hint { font-size: 12px; color: #9ca3af; margin-top: 5px; transition: color .3s; }

/* Submit button */
.portal-submit-btn {
  width: 100%; padding: 14px 20px;
  border: none; border-radius: 12px;
  font-size: 15.5px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .2s, opacity .15s;
  letter-spacing: .01em;
}
.portal-submit-btn:hover   { transform: translateY(-2px); opacity: .95; }
.portal-submit-btn:active  { transform: translateY(0); }
.portal-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.portal-submit-btn--blue {
  background: linear-gradient(135deg, #0055b3, #0088dd);
  color: white;
  box-shadow: 0 8px 24px rgba(0,85,179,.35);
}
.portal-submit-btn--blue:hover { box-shadow: 0 12px 32px rgba(0,85,179,.45); }

/* Switch link */
.portal-switch {
  text-align: center; margin-top: 22px;
  font-size: 14px; color: #6b7280;
}
.portal-link {
  color: #0055b3; font-weight: 700; text-decoration: none;
  transition: color .15s;
}
.portal-link:hover { color: #003d82; text-decoration: underline; }

/* ─── Dashboard layout ────────────────────────────────────── */
.portal-dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #f4f7fb;
}

/* Sidebar */
.portal-sidebar {
  background: #0a0f28;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.portal-sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.portal-sidenav {
  flex: 1; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.portal-sidenav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.55);
  cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s;
  border: none; background: none; font-family: inherit;
  width: 100%; text-align: left;
}
.portal-sidenav-item:hover {
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.9);
}
.portal-sidenav-item.active {
  background: rgba(0,85,179,.35); color: white;
  border-left: 3px solid #F5A800;
}
.portal-sidenav-divider {
  height: 1px; background: rgba(255,255,255,.07);
  margin: 10px 0;
}
.portal-signout-btn { color: rgba(255,100,100,.7); margin-top: auto; }
.portal-signout-btn:hover { background: rgba(220,38,38,.15); color: #fca5a5; }

/* Main area */
.portal-main {
  padding: 40px 48px;
  overflow-y: auto;
  max-width: 1100px;
}

.portal-main-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.portal-main-title {
  font-family: 'Nunito', sans-serif;
  font-size: 30px; font-weight: 900;
  color: #0a1020; line-height: 1.2;
}
.portal-main-sub { font-size: 14px; color: #6b7280; margin-top: 4px; }

/* Loading state */
.portal-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 400px; gap: 20px;
  color: #6b7280; font-size: 15px;
}
.portal-spinner {
  width: 44px; height: 44px;
  border: 4px solid #e5edf8;
  border-top-color: #0055b3;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Welcome banner */
.portal-welcome-banner {
  background: linear-gradient(135deg, #0055b3, #0088dd);
  border-radius: 16px; margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,85,179,.25);
}
.portal-welcome-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; color: white;
}
.portal-welcome-emoji { font-size: 32px; flex-shrink: 0; }
.portal-welcome-title { font-family: 'Nunito',sans-serif; font-size: 17px; font-weight: 900; }
.portal-welcome-sub { font-size: 13.5px; opacity: .8; margin-top: 2px; }
.portal-welcome-close {
  margin-left: auto; background: rgba(255,255,255,.2);
  border: none; border-radius: 6px; color: white;
  padding: 4px 8px; cursor: pointer; font-size: 14px; flex-shrink: 0;
}

/* Stats row */
.portal-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 28px;
}
.portal-stat-card {
  background: white; border-radius: 14px;
  padding: 20px 18px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid #e5edf8;
  cursor: default; transition: transform .2s, box-shadow .2s;
}
.portal-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.portal-stat-card--passport { cursor: pointer; }
.portal-stat-num {
  font-family: 'Nunito', sans-serif;
  font-size: 30px; font-weight: 900; color: #0055b3;
  line-height: 1; margin-bottom: 6px;
}
.portal-stat-label { font-size: 12px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.portal-stat-badge { font-size: 13px; color: #0055b3; font-weight: 700; margin-top: 6px; }

/* Filter tabs */
.portal-filter-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.portal-filter-tab {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  border: 1.5px solid #e5edf8; background: white;
  color: #6b7280; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.portal-filter-tab:hover { border-color: #0055b3; color: #0055b3; }
.portal-filter-tab.active { background: #0055b3; border-color: #0055b3; color: white; }

/* Booking cards */
.portal-bookings-list { display: flex; flex-direction: column; gap: 14px; }
.portal-booking-card {
  display: flex; background: white; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e5edf8;
  transition: transform .2s, box-shadow .2s;
}
.portal-booking-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.10); }

.pbc-left {
  width: 140px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 12px; gap: 6px;
  color: white; text-align: center;
}
.pbc-icon  { font-size: 32px; line-height: 1; }
.pbc-park  { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.pbc-date  { font-size: 12px; opacity: .7; line-height: 1.4; margin-top: 2px; }

.pbc-body  { flex: 1; padding: 18px 20px; }
.pbc-top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.pbc-ref   { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900; color: #0a1020; }
.pbc-guest { font-size: 14px; color: #4b5563; margin-bottom: 6px; }
.pbc-tickets { font-size: 13px; color: #9ca3af; margin-bottom: 14px; }
.pbc-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pbc-total  { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: #0a1020; }
.pbc-view-btn {
  padding: 8px 16px; background: #f0f4ff;
  border: 1.5px solid #c7d9f8; border-radius: 8px;
  color: #0055b3; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .15s; font-family: inherit;
  white-space: nowrap;
}
.pbc-view-btn:hover { background: #0055b3; color: white; border-color: #0055b3; }

/* Status badges */
.pbc-status {
  display: inline-flex; align-items: center;
  border-radius: 20px; padding: 3px 11px;
  font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.pbc-status--upcoming { background: #eff6ff; color: #1d4ed8; }
.pbc-status--today    { background: #fefce8; color: #a16207; }
.pbc-status--past     { background: #f4f7fb; color: #9ca3af; }
.pbc-status--cancelled{ background: #fef2f2; color: #dc2626; }

/* Empty state */
.portal-empty {
  text-align: center; padding: 64px 24px;
  background: white; border-radius: 16px;
  border: 1.5px dashed #e5edf8;
}
.portal-empty-icon { font-size: 56px; margin-bottom: 16px; }
.portal-empty h3 { font-family:'Nunito',sans-serif; font-size:22px; font-weight:900; color:#0a1020; margin-bottom:8px; }
.portal-empty p  { font-size:15px; color:#6b7280; max-width:440px; margin:0 auto; line-height:1.6; }

/* Booking detail modal */
.portal-modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.portal-modal-overlay.hidden { display: none; }
.portal-modal {
  background: white; border-radius: 20px;
  max-width: 520px; width: 100%;
  overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.3);
  max-height: 90vh; overflow-y: auto;
}
.portal-modal-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; color: white; position: sticky; top: 0;
}
.portal-modal-icon { font-size: 30px; flex-shrink: 0; }
.portal-modal-title { font-family:'Nunito',sans-serif; font-size:18px; font-weight:900; }
.portal-modal-sub   { font-size:12px; opacity:.75; margin-top:2px; }
.portal-modal-close {
  margin-left: auto; background: rgba(255,255,255,.22);
  border: none; border-radius: 8px; color: white;
  padding: 6px 10px; cursor: pointer; font-size: 16px;
  flex-shrink: 0; transition: background .15s;
}
.portal-modal-close:hover { background: rgba(255,255,255,.35); }
.portal-modal-body { padding: 20px 22px; }
.portal-modal-section { margin-bottom: 20px; }
.portal-modal-section-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: 10px; }
.portal-modal-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; font-size: 14px; color: #4b5563;
  border-bottom: 1px solid #f0f4fb;
}
.portal-modal-row:last-child { border-bottom: none; }
.portal-modal-total { font-size: 16px; font-weight: 900; color: #0a1020; padding-top: 12px; border-top: 2px solid #e5edf8; }

/* Profile page */
.portal-profile-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 20px; align-items: start;
}
.portal-card {
  background: white; border-radius: 16px;
  padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05);
  border: 1px solid #e5edf8;
}
.portal-card-title {
  font-family: 'Nunito',sans-serif; font-size:16px; font-weight:900;
  color:#0a1020; margin-bottom:18px;
}
.portal-card--danger { border-color: #fecaca; }

.portal-avatar-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.portal-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #0055b3, #0088dd);
  color: white; font-family: 'Nunito',sans-serif;
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.portal-avatar-name  { font-family:'Nunito',sans-serif; font-size:17px; font-weight:900; color:#0a1020; }
.portal-avatar-email { font-size:13px; color:#6b7280; margin-top:2px; }
.portal-avatar-badge {
  display: inline-block; margin-top:6px;
  background: #f0f4ff; color: #0055b3;
  border: 1px solid #c7d9f8; border-radius:20px;
  padding:2px 10px; font-size:11.5px; font-weight:700;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .portal-page { grid-template-columns: 1fr; }
  .portal-brand { display: none; }
  .portal-form-panel { padding: 40px 24px; }

  .portal-dashboard { grid-template-columns: 1fr; }
  .portal-sidebar { display: none; }
  .portal-main { padding: 24px 20px; }
  .portal-stats-row { grid-template-columns: 1fr 1fr; }
  .portal-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .portal-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .portal-booking-card { flex-direction: column; }
  .pbc-left { width: 100%; flex-direction: row; gap: 12px; padding: 14px 18px; justify-content: flex-start; text-align: left; }
  .portal-form-panel { padding: 30px 16px; }
}
