*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0f1a12;
  --ink-muted: #4a5e4d;
  --sage:      #3d6b4f;
  --sage-light:#5a8f6a;
  --cream:     #f5f0e8;
  --cream-dark:#ede6d6;
  --gold:      #c8a84b;
  --white:     #ffffff;
  --shadow:    0 32px 80px rgba(15,26,18,.18);
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  overflow: hidden;
}

/* ── Background map texture ────────────────────────────────────────────── */
.bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(61,107,79,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(200,168,75,.06) 0%, transparent 60%),
    var(--cream);
}

/* SVG topographic lines */
.bg-topo {
  position: fixed; inset: 0;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cpath d='M0 150 Q150 100 300 150 T600 150' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 200 Q150 150 300 200 T600 200' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 250 Q150 200 300 250 T600 250' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 300 Q150 250 300 300 T600 300' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 350 Q150 300 300 350 T600 350' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 400 Q150 350 300 400 T600 400' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 450 Q150 400 300 450 T600 450' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 500 Q150 450 300 500 T600 500' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 100 Q150 50 300 100 T600 100' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M0 50 Q150 0 300 50 T600 50' stroke='%233d6b4f' stroke-width='1' fill='none'/%3E%3Cpath d='M100 0 Q50 150 100 300 T100 600' stroke='%233d6b4f' stroke-width='.8' fill='none'/%3E%3Cpath d='M200 0 Q150 150 200 300 T200 600' stroke='%233d6b4f' stroke-width='.8' fill='none'/%3E%3Cpath d='M300 0 Q250 150 300 300 T300 600' stroke='%233d6b4f' stroke-width='.8' fill='none'/%3E%3Cpath d='M400 0 Q350 150 400 300 T400 600' stroke='%233d6b4f' stroke-width='.8' fill='none'/%3E%3Cpath d='M500 0 Q450 150 500 300 T500 600' stroke='%233d6b4f' stroke-width='.8' fill='none'/%3E%3C/svg%3E");
  background-size: 600px 600px;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.layout {
  position: relative; z-index: 1;
  display: flex;
  height: 100vh;
}

/* Left decorative panel */
.panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  max-width: 520px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 4rem;
  animation: fadeUp .6s ease both;
}

.brand-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.brand-icon svg { width: 20px; height: 20px; fill: var(--white); }

.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -.01em;
}

.tagline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.03em;
  animation: fadeUp .6s .1s ease both;
}
.tagline em {
  font-style: italic;
  color: var(--sage);
}

.tagline-sub {
  margin-top: 1.25rem;
  font-size: .95rem;
  color: var(--ink-muted);
  font-weight: 300;
  line-height: 1.6;
  max-width: 340px;
  animation: fadeUp .6s .2s ease both;
}

/* Decorative parcel sketch */
.parcel-sketch {
  margin-top: 3.5rem;
  animation: fadeUp .6s .3s ease both;
}

.parcel-sketch svg {
  width: 100%; max-width: 380px;
  opacity: .65;
}

/* Right card */
.panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 2rem;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.75rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: scaleIn .5s .15s cubic-bezier(.22,.68,0,1.2) both;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.card-sub {
  font-size: .875rem;
  color: var(--ink-muted);
  font-weight: 300;
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: 100%;
  padding: .9rem 1.5rem;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(61,107,79,.3);
}
.btn-google:hover {
  background: var(--sage-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,107,79,.35);
}
.btn-google:active { transform: translateY(0); }

.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Divider */
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.75rem 0;
  color: #bbb;
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--cream-dark);
}

/* Info box */
.info-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.55;
  display: flex;
  gap: .625rem;
}
.info-box svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--sage); }

/* Error banner */
.error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #b91c1c;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: .5rem;
}
.error-banner.visible { display: flex; }
.error-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Footer note */
.card-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: .78rem;
  color: #b0b8b2;
}
.card-footer a { color: var(--sage); text-decoration: none; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .panel-left { display: none; }
  .panel-right { padding: 1.5rem; }
  .card { padding: 2.25rem 1.75rem; }
}
