/* Portali i mysafirëve. Pa fonte dhe pa skedarë të jashtëm: faqja hapet para se klienti të ketë internet. */

:root {
  --bg: #EDF1EF;
  --surface: #FFFFFF;
  --ink: #10231F;
  --muted: #55665F;
  --line: #C9D3CF;
  --danger: #A3271C;
  --accent: #0B6B53;
  --on-accent: #FFFFFF;
}

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.portal {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Shenja e sinjalit: harqet mbushen me çdo hap të kryer. */
.masthead { position: relative; margin-bottom: 2rem; }

/* Ndërruesi i gjuhës: emri i gjuhës tjetër, lart djathtas. */
.lang {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.signal { display: block; width: 5.5rem; height: auto; margin-left: -0.6rem; }
.signal .arc { fill: none; stroke: var(--line); stroke-width: 9; stroke-linecap: round; }
.signal .dot { fill: var(--line); }
.signal .arc.on { stroke: var(--accent); }
.signal .dot.on { fill: var(--accent); }

.step { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--muted); }

.venue {
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

/*
 * Lokacion me foto: fotoja zë pjesën e sipërme me emrin e lokalit mbi të,
 * forma rri poshtë në sfond të plotë që teksti të lexohet mbi çdo foto.
 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 30vh;
  padding: 4.5rem 1.5rem 2.25rem;
  background: #10231F center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 18, 16, 0.35) 0%, rgba(8, 18, 16, 0.05) 40%, rgba(8, 18, 16, 0.78) 100%);
}
.hero .venue {
  position: relative;
  width: 100%;
  max-width: 23rem;
  margin: 0 auto;
  color: #FFFFFF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.hero .lang { top: 1rem; right: 1rem; border-color: transparent; }

.has-photo .portal {
  position: relative;
  margin-top: -1.25rem;
  padding-top: 1.25rem;
  border-radius: 20px 20px 0 0;
  background: var(--bg);
}
.has-photo .masthead { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; min-height: 2rem; }
.has-photo .signal { width: 2.5rem; margin-left: -0.25rem; }
.has-photo .step { margin: 0; }

@media (min-width: 40rem) {
  .has-photo { min-height: 100vh; background: #10231F; }
  .hero { min-height: 46vh; padding-bottom: 7.25rem; }
  .has-photo .portal { margin-top: -5rem; margin-bottom: 3rem; border-radius: 20px; }
}

h1 { margin: 0 0 0.5rem; font-size: 1.375rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.lead { margin: 0 0 1.5rem; color: var(--muted); }
.lead strong { color: var(--ink); font-weight: 600; }

label { display: block; margin-bottom: 0.4rem; font-size: 0.9375rem; font-weight: 600; }

input[type="email"],
input[type="text"] {
  display: block;
  width: 100%;
  height: 3.5rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
}

input::placeholder { color: #8B9994; }

input[aria-invalid="true"] { border-color: var(--danger); }

input.code {
  font-size: 1.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.error { margin: 0.5rem 0 0; color: var(--danger); font-size: 0.9375rem; font-weight: 600; }

.notice {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-size: 0.9375rem;
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.25rem 0 0;
  font-weight: 400;
  color: var(--muted);
}
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--accent); }

.button {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:active { transform: translateY(1px); }

.fine { margin: 1.25rem 0 0; font-size: 0.8125rem; color: var(--muted); }

.alt { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.5rem; }
.alt form { margin: 0; }

.link {
  padding: 0.5rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* I vetmi animacion: harqet ndizen njëri pas tjetrit kur klienti lidhet. */
@media (prefers-reduced-motion: no-preference) {
  .is-connected .signal .on { animation: light 0.5s ease-out both; }
  .is-connected .signal .arc:nth-of-type(3) { animation-delay: 0.15s; }
  .is-connected .signal .arc:nth-of-type(2) { animation-delay: 0.3s; }
  .is-connected .signal .arc:nth-of-type(1) { animation-delay: 0.45s; }
}
@keyframes light {
  from { opacity: 0.15; }
}
