/* ── Landing page (shown when signed out) ── */
.login-container {
  /* auth.js toggles this element's inline display to 'flex' — keep it a column */
  flex-direction: column;
  min-height: 100vh;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero band with the split login */
.landing-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 56px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.landing-split {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 1160px;
  width: 100%;
}

.landing-hero {
  flex: 1 1 auto;
  color: #fff;
  animation: slideUp 0.5s ease-out;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  opacity: 0.95;
  margin-bottom: 22px;
}
.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 14px;
}

.hero-headline {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 18px 0;
  color: #fff;
}
.hero-headline span { color: #ffe08a; }

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 30px 0;
  max-width: 560px;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 20px;
}
.hero-feature strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 2px;
  color: #fff;
}
.hero-feature span {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.hero-trust .trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
}

.login-card {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card h1 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 32px;
  font-weight: 700;
}

.login-card p {
  margin: 0 0 32px 0;
  color: #6b7280;
  font-size: 16px;
}

#loginForm {
  width: 100%;
}

.form-field {
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.form-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-field input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.google-btn {
  width: 100%;
  padding: 12px 24px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.google-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.link-btn {
  margin-top: 14px;
  background: transparent;
  border: none;
  color: #4f46e5;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.link-btn:hover {
  color: #3730a3;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.error-message {
  margin-top: 16px;
  padding: 12px;
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 6px;
  color: #c33;
  font-size: 14px;
  display: none;
}

.error-message:not(:empty) {
  display: block;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout-btn {
  padding: 8px 16px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #dc2626;
}

.logout-btn:active {
  background: #b91c1c;
}

/* ── "How it works" band ── */
.landing-how {
  background: #ffffff;
  padding: 72px 24px;
  text-align: center;
}
.landing-how h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.landing-how-sub {
  color: #64748b;
  font-size: 15px;
  margin: 0 0 44px 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.how-step {
  margin: 0;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.how-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.how-step img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top left;
  display: block;
  border-bottom: 1px solid #e2e8f0;
  background: #eef2f7;
}
.how-step figcaption {
  padding: 18px 20px 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
}
.how-step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
  margin-bottom: 6px;
}

/* ── "Ship it your way" band ── */
.landing-ways {
  background: #f8fafc;
  padding: 72px 24px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}
.landing-ways h2 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 44px auto 0;
}
.way-card {
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.way-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6366f1;
  background: #eef2ff;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.way-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}
.way-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px 0;
}
.way-code {
  background: #0f172a;
  border-radius: 8px;
  padding: 14px 16px;
  margin: auto 0 16px 0;
  overflow-x: auto;
}
.way-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre;
}
.way-code .c-ok { color: #4ade80; }
.way-link {
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  text-decoration: none;
}
.way-link:hover { text-decoration: underline; }

.ways-selfhost {
  text-align: center;
  margin: 40px auto 0;
  font-size: 14.5px;
  color: #475569;
  max-width: 640px;
}
.ways-selfhost a { color: #4f46e5; font-weight: 600; text-decoration: none; }
.ways-selfhost a:hover { text-decoration: underline; }

/* ── Landing footer ── */
.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 24px;
}
.lf-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.lf-brand {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.lf-brand span {
  font-weight: 400;
  color: #64748b;
  font-size: 13px;
}
.lf-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.lf-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.lf-links a:hover { color: #fff; }
.lf-copy {
  max-width: 1100px;
  margin: 20px auto 0;
  font-size: 12.5px;
  color: #64748b;
  border-top: 1px solid #1e293b;
  padding-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .landing-split {
    flex-direction: column;
    gap: 36px;
  }
  .landing-hero { text-align: center; }
  .hero-feature { text-align: left; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-headline { font-size: 34px; }
  .landing-hero-section { min-height: auto; padding: 48px 20px; }
  .login-card { max-width: 420px; margin: 0 auto; }
  .how-steps { grid-template-columns: 1fr; max-width: 460px; }
  .ways-grid { grid-template-columns: 1fr; max-width: 460px; }
}
