* { box-sizing: border-box; }
body {
  font-family: 'Nunito', 'Quicksand', 'Plus Jakarta Sans', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.customer-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #FFF5EB 0%, #FFE8F0 35%, #FFE4D6 60%, #FFF9E6 100%);
}

.customer-login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 218, 185, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 239, 213, 0.5) 0%, transparent 55%);
  pointer-events: none;
}
.customer-login-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L32 25 L30 28 L28 25 Z' fill='%23ffb088' fill-opacity='0.12'/%3E%3Cpath d='M50 15 L52 35 L50 38 L48 35 Z' fill='%23ff9f9f' fill-opacity='0.1'/%3E%3Cpath d='M10 40 L12 55 L10 58 L8 55 Z' fill='%23ffd6a5' fill-opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.login-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42vh;
  min-height: 200px;
  background:
    linear-gradient(180deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 228, 225, 0.2) 45%, transparent 100%),
    linear-gradient(135deg, #FFE8E0 0%, #FFD6E8 50%, #FFE4D6 100%),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1200') center/cover no-repeat;
  z-index: 0;
}
.login-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,245,235,0.65) 0%, rgba(255,248,240,0.82) 100%);
  z-index: 1;
}

.customer-login-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Big title at the very top of the page (above the card) */
.login-page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  color: #8b3a4a;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(139, 58, 74, 0.15);
  line-height: 1.1;
}

.customer-login-box {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 2.25rem 2rem;
  border-radius: 24px;
  box-shadow:
    0 4px 24px rgba(255, 152, 136, 0.15),
    0 12px 48px rgba(255, 105, 157, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8);
  width: 100%;
  position: relative;
}
/* Login: character image inside card – wider */
.login-hero-wrap {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}
.login-hero-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(232, 93, 117, 0.25);
  border: 3px solid rgba(255, 228, 214, 0.8);
  display: block;
  margin: 0 auto;
}

.login-sparkle {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.6;
  pointer-events: none;
}
.login-sparkle--1 { top: 12%; left: 8%; animation: sparkle 3s ease-in-out infinite; }
.login-sparkle--2 { top: 18%; right: 12%; animation: sparkle 3.5s ease-in-out infinite 0.5s; }
.login-sparkle--3 { bottom: 22%; left: 10%; animation: sparkle 2.8s ease-in-out infinite 1s; }
.login-sparkle--4 { bottom: 15%; right: 8%; animation: sparkle 3.2s ease-in-out infinite 0.3s; }
@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

.customer-login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #FF9F43 0%, #FFB088 50%, #FF6B9D 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.35);
  padding: 0.75rem;
}
.customer-login-icon svg { width: 2rem; height: 2rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }
.customer-login-box h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #C44569 0%, #FF6B9D 50%, #FF9F43 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.02em;
}
.customer-login-box .subtitle {
  margin: 0 0 1.5rem;
  color: #8B7355;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}
.customer-login-box label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #5D4E37;
}
.customer-login-box input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border: 2px solid #FFE4D6;
  border-radius: 14px;
  font-size: 1.05rem;
  font-family: inherit;
  background: #FFFBF7;
  color: #2D2420;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.customer-login-box input::placeholder { color: #B8A090; }
.customer-login-box input:focus {
  outline: none;
  border-color: #FF9F43;
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.2);
}
.customer-login-box button {
  width: 100%;
  padding: 1rem 1.25rem;
  margin-top: 0.25rem;
  background: linear-gradient(145deg, #FF9F43 0%, #FF6B9D 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}
.customer-login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 157, 0.45);
}
.customer-login-box button:active { transform: translateY(0); }
.customer-login-box .error-msg {
  color: #C44569;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

.customer-dashboard {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF9F0 0%, #FFEFE8 30%, #FFF5EB 100%);
  color: #2D2420;
}

.customer-header {
  position: relative;
  padding: 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, #FF9F43 0%, #FFB088 40%, #FF6B9D 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.25);
  overflow: hidden;
}
.customer-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.customer-header-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
/* Dashboard header: Misaka Mikoto image + name on top */
.header-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.header-hero-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
}
.header-hero-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.customer-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ref-display {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 600;
}
.btn-logout {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.btn-logout:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.customer-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}
.customer-main .loading,
.customer-main .empty {
  color: #8B7355;
  margin: 0;
  font-weight: 600;
  text-align: center;
  padding: 2rem;
}
.customer-main .error {
  color: #C44569;
  margin: 0;
  text-align: center;
  padding: 2rem;
}
.customer-main .error a {
  color: #FF6B9D;
  font-weight: 700;
  text-decoration: none;
}
.customer-main .error a:hover { text-decoration: underline; }

.customer-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.customer-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow:
    0 4px 20px rgba(255, 152, 136, 0.12),
    0 0 0 1px rgba(255, 228, 214, 0.6);
  border: 1px solid rgba(255, 200, 180, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 157, 0.15), 0 0 0 1px rgba(255, 228, 214, 0.6);
}
.customer-card .card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 228, 214, 0.6);
  font-size: 0.98rem;
}
.customer-card .card-row:last-child { border-bottom: none; }
.customer-card .card-row .label {
  color: #8B7355;
  font-weight: 700;
  flex-shrink: 0;
}
.customer-card .card-row .value {
  font-weight: 600;
  text-align: right;
  color: #2D2420;
}

.customer-card .status-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.status-pill.status-CONFIRMED { background: linear-gradient(135deg, #B8E994 0%, #78E08F 100%); color: #166534; }
.status-pill.status-COMPLETED { background: linear-gradient(135deg, #A8D8EA 0%, #7DBEE8 100%); color: #1e3a5f; }
.status-pill.status-CANCELLED { background: linear-gradient(135deg, #FFB8B8 0%, #FF9F9F 100%); color: #991b1b; }
.status-pill.status-REPAY { background: linear-gradient(135deg, #FFEAA7 0%, #FFD97D 100%); color: #b45309; }

.link-itinerary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
  color: #C44569;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.link-itinerary:hover {
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.35) 0%, rgba(255, 107, 157, 0.35) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.2);
}
.link-itinerary + .link-itinerary { margin-left: 0.5rem; }
.card-row-itinerary .value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
