/* =========================
   RESET / BASE
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #f5f5f5;
  overflow-x: hidden;
}

/* =========================
   BAKGRUNNSBILDE
========================= */
.bg {
  position: fixed;
  inset: 0;
  background-image: url('../images/indexbilde1.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: -2;
}

/* =========================
   TOPPLINJE
========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
}

/* =========================
   BRUKER / LOGOUT
========================= */
.user-box {
  margin-left: auto;
  color: #111;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logout-btn {
  text-decoration: none;
  border: 1px solid #111;
  padding: 6px 12px;
  border-radius: 999px;
  color: #111;
}

.logout-btn:hover {
  background: #111;
  color: white;
}

/* =========================
   HOVEDSIDE
========================= */
main {
  padding: 120px 0;
}

.main-title {
  text-align: center;
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 80px;
  color: white;
}

.new-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.menu-btn {
  padding: 20px 30px;
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

.menu-btn:hover {
  background: #0ea5e9;
  color: white;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: rgba(255,255,255,0.7);
}

/* =========================
   LOGIN SIDE
========================= */

/* Fjern påvirkning fra main */
body.login-page main {
  padding: 0;
}

/* Wrapper */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Selve boksen */
.login-panel {
  width: 900px;
  max-width: 95%;
  background: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Venstre side */
.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f3f4f6;
  padding: 40px;
  text-align: center;
}

.login-big-logo {
  width: 150px;
  margin-bottom: 20px;
}

/* Høyre side */
.login-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-content h2 {
  margin-bottom: 20px;
}

/* Form */
.member-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.member-form input {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
}

.member-form button {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.member-form button:hover {
  background: #16a34a;
}

/* Mobil */
@media (max-width: 700px) {
  .login-panel {
    grid-template-columns: 1fr;
  }
}

/* ===== Tving login til å være isolert ===== */

body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overstyr ALT fra main */
body.login-page main {
  all: unset;
}

/* Sentrer layout */
.login-shell {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login box */
.login-panel {
  width: 900px;
  max-width: 95%;
  background: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

/* VENSTRE SIDE */
.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: #f1f5f9;
  padding: 40px;
  text-align: center;
}

.login-big-logo {
  width: 140px;
  margin-bottom: 20px;
}

.login-visual h1 {
  font-size: 1.8rem;
  margin: 0;
}

.login-visual p {
  font-size: 0.9rem;
  color: #555;
}

/* HØYRE SIDE */
.login-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-content h2 {
  text-align: center;
  margin-bottom: 25px;
}

/* FORM */
.member-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.member-form input {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
}

.member-form button {
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: #22c55e;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.member-form button:hover {
  background: #16a34a;
}

.login-help {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

/* Mobil */
@media (max-width: 700px) {
  .login-panel {
    grid-template-columns: 1fr;
  }
}