/* Entry pages: the homepage (/), guest sign-in (/guest/), owner away from home (/owner/) and the owner sign-in.
   Everything is scoped under .entry so it can sit next to the owner page's styles. Tokens: /shared/tokens.css. */

.entry {
  max-width: 880px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-size: 16px;
  line-height: 1.6;
}
.entry-head { display: flex; flex-direction: column; gap: var(--space-2); }
.entry h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.entry-lede { margin: 0; max-width: 36em; font-size: 18px; color: var(--text-secondary); }
.entry-foot { margin: auto 0 0; font-size: 14px; color: var(--text-secondary); }

.entry .back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-bottom: calc(-1 * var(--space-4));
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.entry .back:hover { color: var(--text-primary); }

/* ---- Who's here: pink for guests (their room's lights), blue for the owner ---- */

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); }
.choice {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-height: 300px;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-1);
  color: var(--text-primary);
  transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-standard), box-shadow var(--dur-med) var(--ease-standard);
}
.choice:hover { transform: translateY(-4px); background: var(--bg-2); box-shadow: var(--shadow-md); color: var(--text-primary); }
.choice:active { transform: scale(0.98); }
.choice-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-pastel);
}
.choice.pink .choice-icon { background: var(--pink-500); }
.choice.blue .choice-icon { background: var(--blue-500); }
.choice-body { display: flex; flex-direction: column; gap: var(--space-2); flex-grow: 1; min-width: 0; }
.choice-title { font-size: 2.25rem; line-height: 1.1; }
.choice-sub { font-size: 15px; color: var(--text-secondary); }
.choice-go { margin-top: auto; padding-top: var(--space-3); display: inline-flex; align-items: center; gap: var(--space-2); font-size: 15px; font-weight: 700; }
.choice.pink .choice-go { color: var(--pink-500); }
.choice.blue .choice-go { color: var(--blue-500); }

@media (max-width: 640px) {
  .choice { flex-direction: row; align-items: flex-start; min-height: 0; padding: var(--space-5); gap: var(--space-4); }
  .choice-icon { width: 56px; height: 56px; }
  .choice-title { font-size: 1.75rem; }
}

/* ---- Sign-in options: one card per way in ---- */

.options { display: flex; flex-direction: column; gap: var(--space-4); }
.option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-1);
}
.option-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background-color: var(--bg-3);
  background-image: var(--dot-texture);
  background-size: var(--dot-texture-size);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.option-title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font-size: 20px; font-weight: 700; line-height: 1.3; }
.option-body p { margin: 0; font-size: 15px; color: var(--text-secondary); }
.option-body .option-error { min-height: 1.6em; color: var(--danger); }
.option-body .option-error:empty { display: none; }
.option-form { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.option-form .entry-input { flex: 1 1 260px; }

.entry-input {
  min-width: 0;
  height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-0);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.entry-input:focus { outline: none; border-color: var(--focus-ring); }
.entry-input::placeholder { color: var(--text-muted); }

.entry .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .option { flex-direction: column; gap: var(--space-4); }
  .option-form .btn { flex: 1 1 100%; }
}

/* ---- Owner away from home (the internet address) ---- */

.away { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; }
.away h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.away p { margin: 0; font-size: 16px; color: var(--text-secondary); }
.away-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-1);
  background-image: var(--dot-texture);
  background-size: var(--dot-texture-size);
  border: 1px solid var(--border-subtle);
  color: var(--blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.away-address {
  width: 100%;
  max-width: 440px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-1);
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
