:root {
  --sjoglimt-accent: #ff6a3d;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0710;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #f4ede4;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0710;
}

/* .frame preserves the hero photo's native 2954x4049 aspect ratio exactly,
   so percentage-based hotspot coordinates always line up with the image,
   regardless of viewport size. */
.frame {
  position: relative;
  aspect-ratio: 2954 / 4049;
  width: min(100vw, calc(100vh * 2954 / 4049));
  height: min(100vh, calc(100vw * 4049 / 2954));
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Clickable hotspot placed over the rightmost lit window of the main cabin.
   Coordinates are percentages of the frame (= percentages of the original
   image pixels), so they stay correct at any screen size. */
.login-hotspot {
  /* Placed over the rightmost red-lit window (measured image bbox
     ~2060,2265 - 2249,2404 in the 2954x4049 source, verified 19. august
     2026 by cropping and visually inspecting the source photo), with a
     small padding margin so the clickable area is comfortably larger than
     the window itself. Previous coordinates were offset to the right and
     only covered the right pane. */
  position: absolute;
  left: 69.4%;
  top: 55.7%;
  width: 6.9%;
  height: 3.9%;
  min-width: 14px;
  min-height: 14px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 4px;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.login-hotspot:hover,
.login-hotspot:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.65), 0 0 18px 6px rgba(255, 140, 60, 0.35);
}

.brand {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.brand-title {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4ede4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Login modal */
.login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 10, 0.72);
  backdrop-filter: blur(3px);
  z-index: 20;
}

.login-overlay.open {
  display: flex;
}

.login-card {
  position: relative;
  width: min(90vw, 360px);
  background: #1b1420;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 28px 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.login-sub {
  margin: 0 0 18px;
  font-size: 0.85rem;
  color: #c8bcae;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-card label {
  font-size: 0.78rem;
  color: #c8bcae;
  margin-top: 8px;
}

.login-card input {
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f0a13;
  color: #f4ede4;
  font-size: 0.95rem;
}

.login-card input:focus {
  outline: 2px solid var(--sjoglimt-accent);
  outline-offset: 1px;
}

.login-submit {
  margin-top: 16px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: var(--sjoglimt-accent);
  color: #1b1420;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.login-submit:hover {
  filter: brightness(1.08);
}

.login-note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: #7d7284;
}

.login-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #c8bcae;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.login-close:hover {
  color: #f4ede4;
}
