:root { color-scheme: light; }
* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #e6e0d4;
  color: #1f2937;
  margin: 0;
}

/* Gemensam Optimum Guitar-header */
.banner {
  background: linear-gradient(90deg, #e2b64e, #d19142);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 3rem;
  flex-wrap: wrap;
  position: relative;
  width: auto;
  box-sizing: content-box;
  text-align: initial;
}

.logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.banner img.logo {
  height: 260px;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  margin-top: -0.3rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
  display: block;
  object-fit: contain;
}

nav.menu {
  display: flex;
  gap: 0.85rem;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 1.2rem;
  position: static;
  box-shadow: none;
  margin: 0;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: auto;
}

nav.menu a,
.sticky-menu a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.55rem;
  display: inline-block;
}

nav.menu a.active,
.sticky-menu a.active {
  color: #d97706;
}

.menu-toggle {
  display: none;
  border: none;
  font-size: 2.6rem;
  cursor: pointer;
  color: #1f2937;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 1002;
  line-height: 1;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.08);
}

.sticky-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to right, rgba(254, 243, 199, 0.85), rgba(252, 211, 77, 0.85));
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.sticky-menu.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Fallback för övriga auth-sidor som fortfarande har enkel nav-markup */
.banner > nav:not(.menu) {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-size: 1.2rem;
}

.banner > nav:not(.menu) a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.55rem;
}

/* Inloggningskort */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.auth-card {
  background: rgba(255,255,255,.82);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  padding: clamp(1.4rem, 5vw, 2.5rem);
}

h1 {
  margin-top: 0;
  text-align: center;
}

.lead {
  text-align: center;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 2rem;
}

form {
  max-width: 480px;
  margin: 0 auto;
}

label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 .35rem;
}

input {
  width: 100%;
  border: 1px solid #c7c2b8;
  border-radius: 10px;
  padding: .9rem 1rem;
  font: inherit;
  background: #fff;
}

input:focus {
  outline: 3px solid rgba(217,119,6,.22);
  border-color: #d97706;
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: .9rem 1.4rem;
  margin-top: 1.3rem;
  background: #d97706;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

.primary:disabled {
  opacity: .6;
  cursor: wait;
}

.secondary-link {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  color: #8a4b08;
  font-weight: 600;
}

.message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  text-align: center;
  font-weight: 600;
}

.message.error { color: #9f1239; }
.message.success { color: #166534; }

.small {
  color: #5f5a52;
  font-size: .95rem;
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 768px), (max-height: 500px) {
  nav.menu {
    display: none;
    flex-direction: column;
    background-color: #fffbea;
    width: 100%;
    padding: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    margin: 0;
    box-sizing: border-box;
  }

  nav.menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .sticky-menu {
    display: none !important;
  }

  .banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .banner img.logo {
    height: auto;
    max-width: min(78vw, 360px);
  }

  .banner > nav:not(.menu) {
    width: 100%;
    font-size: .95rem;
    margin-top: .4rem;
  }

  main {
    padding-top: 1.5rem;
  }
}
