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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #4a3428;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #f5c9a0;
  box-shadow: none;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-logo {
  color: #e76f51;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-user-greeting {
  font-weight: 700;
  color: #1c1e21;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.btn-primary {
  background: color-mix(in srgb, #f4a261 22%, #ffffff);
  color: #4a3428;
  border: 1px solid #e76f51;
}

.btn-primary:hover {
  background: #d45f42;
}

.btn-success {
  background: #42b72a;
  color: #fff;
}

.btn-success:hover {
  background: #36a420;
}

.btn-danger {
  background: #dc3545;
  color: #fff;
}

.btn-danger:hover {
  background: #c82333;
}

.btn-ghost {
  background: transparent;
  color: #e76f51;
}

.btn-ghost:hover {
  background: #e7f3ff;
}

.btn-block {
  width: 100%;
}

.alert {
  width: min(100% - 32px, 420px);
  margin: 20px auto 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.alert-error {
  background: #ffebe8;
  border: 1px solid #f1b8b8;
  color: #b42318;
}

.alert-success {
  background: #eaf7ed;
  border: 1px solid #b7dfc2;
  color: #1f7a35;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.landing-shell {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.landing-copy {
  max-width: 620px;
}

.landing-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #e76f51;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.3rem);
  line-height: 1.08;
}

.landing-description {
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #606770;
  max-width: 58ch;
}

.landing-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.carousel {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 16px;
  background: #d8dde6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: landingSlide 12s infinite;
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slide-1 {
  background-image: url('https://images.unsplash.com/photo-1541625602330-2277a4c4618c?auto=format&fit=crop&w=1200&q=80');
}

.slide-2 {
  background-image: url('https://images.unsplash.com/photo-1511994298241-608e28f14fde?auto=format&fit=crop&w=1200&q=80');
}

.slide-3 {
  background-image: url('https://images.unsplash.com/photo-1517649763962-0c623066013b?auto=format&fit=crop&w=1200&q=80');
}

@keyframes landingSlide {
  0%, 25% { transform: translateX(0); }
  33%, 58% { transform: translateX(-33.333%); }
  66%, 91% { transform: translateX(-66.666%); }
  100% { transform: translateX(0); }
}

.landing-footer {
  background: #fff;
  border-top: 1px solid #d9dee5;
  padding: 20px;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  font-size: 13px;
  color: #737373;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.28);
}

.modal-overlay[hidden] {
  display: none;
}

.auth-modal {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #606770;
  font-size: 28px;
  line-height: 1;
}

.auth-title {
  margin: 0 0 18px;
  color: #e76f51;
}

.auth-title-success {
  color: #42b72a;
}

.auth-subtitle {
  margin: -6px 0 18px;
  color: #606770;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.form-group input {
  width: 100%;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.form-group input:focus {
  border-color: #e76f51;
  box-shadow: 0 0 0 3px #e7f3ff;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #606770;
  margin-bottom: 6px;
}

.auth-input-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.04em;
}

.auth-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #65676b;
}

.auth-hint code {
  font-size: 11px;
  background: #f0f2f5;
  padding: 1px 5px;
  border-radius: 4px;
}

.auth-divider {
  margin: 20px 0;
  color: #606770;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #d9dee5;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.g_id_onload--hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  width: 100%;
  margin: 4px 0 0;
}

.google-signin-wrap:empty {
  min-height: 0;
}

.btn-google-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  margin: 8px auto 0;
  padding: 11px 16px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #fff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-google-fallback:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
}

.google-origin-details {
  margin-top: 12px;
  text-align: left;
}

.google-origin-details summary {
  cursor: pointer;
  list-style: none;
}

.google-origin-details summary::-webkit-details-marker {
  display: none;
}

.google-origin-code {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.85rem;
  word-break: break-all;
}

.google-origin-list {
  margin: 6px 0 0;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.6;
}

.google-origin-list code {
  font-size: 0.8rem;
}

.auth-legal {
  margin: 4px 0 0;
  text-align: left;
  color: #777;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .landing-nav {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .landing-copy {
    max-width: 100%;
  }

  .carousel {
    height: 260px;
  }

  .landing-nav-actions {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .landing-main {
    padding: 28px 16px;
  }

  .landing-title {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
  }

  .landing-cta-row,
  .landing-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}