/* NordicPass 3.0 RC4 login · compact approved mockup parity.
   Page-scoped overrides only. Authentication behaviour remains unchanged. */

.auth-body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vh, 44px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 8% 2%, rgba(184, 220, 233, .58), transparent 28%),
    radial-gradient(circle at 96% 93%, rgba(179, 32, 58, .18), transparent 27%),
    linear-gradient(145deg, #17334d 0%, #0d2237 36%, #081625 72%, #11172a 100%);
}

.auth-body::before,
.auth-body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: 0;
}

.auth-body::before {
  height: 37vh;
  min-height: 260px;
  opacity: .32;
  background: #10243a;
  clip-path: polygon(
    0 56%, 5% 49%, 10% 55%, 14% 44%, 18% 50%, 23% 35%, 28% 52%,
    35% 48%, 41% 61%, 48% 49%, 55% 58%, 63% 45%, 70% 55%, 76% 48%,
    82% 59%, 88% 37%, 93% 45%, 97% 29%, 100% 35%, 100% 100%, 0 100%
  );
}

.auth-body::after {
  height: 20vh;
  min-height: 145px;
  opacity: .30;
  background: linear-gradient(180deg, rgba(63, 167, 214, .22), rgba(8, 22, 37, .76));
  clip-path: polygon(0 32%, 19% 42%, 35% 30%, 49% 48%, 67% 35%, 84% 45%, 100% 33%, 100% 100%, 0 100%);
}

.auth-shell {
  width: min(860px, 100%);
  margin: 0 auto;
}

.auth-brand {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  gap: 16px;
  color: #fff;
  align-items: center;
}

.auth-brand img {
  width: 78px;
  height: 59px;
  flex: 0 0 auto;
  object-fit: contain;
}

.auth-brand span {
  gap: 3px;
}

.auth-brand strong {
  color: #fff;
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
}

.auth-brand small {
  color: rgba(255, 255, 255, .64);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.35;
  font-weight: 500;
}

.auth-card {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: clamp(38px, 4vw, 48px) clamp(30px, 4.2vw, 50px) clamp(34px, 3.7vw, 42px);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 28px 78px rgba(0, 0, 0, .23);
}

.auth-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.2vw, 54px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -.052em;
}

.auth-card > p {
  max-width: 660px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.42;
}

.auth-card .alert {
  margin: 20px 0 0;
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 56px;
  padding: 0 17px;
  border: 1px solid #c7d4dc;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.auth-form input::placeholder {
  color: #72849a;
  opacity: 1;
}

.auth-form input:focus {
  border-color: #086be5;
  box-shadow: 0 0 0 1px #086be5;
}

.auth-form .primary-button {
  min-height: 56px;
  margin-top: 1px;
  border-radius: 15px;
  background: linear-gradient(90deg, #173b5d, #143654);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(23, 52, 80, .17);
}

.auth-form .primary-button:hover {
  background: #102f4b;
}

.auth-form .primary-button:focus-visible,
.auth-link:focus-visible,
.auth-brand:focus-visible {
  outline: 3px solid rgba(103, 190, 226, .55);
  outline-offset: 4px;
}

.auth-link {
  display: inline-block;
  margin-top: 14px;
  color: #0782b9;
  font-size: 15px;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .auth-body {
    place-items: start center;
    padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  }

  .auth-shell {
    width: 100%;
  }

  .auth-brand {
    margin-bottom: 22px;
    gap: 12px;
  }

  .auth-brand img {
    width: 60px;
    height: 46px;
  }

  .auth-brand strong {
    font-size: clamp(28px, 9vw, 35px);
  }

  .auth-brand small {
    font-size: clamp(11px, 3.7vw, 14px);
  }

  .auth-card {
    padding: 32px 23px 28px;
    border-radius: 23px;
  }

  .auth-card h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .auth-card > p {
    margin-top: 15px;
    font-size: 16px;
  }

  .auth-form {
    margin-top: 26px;
    gap: 14px;
  }

  .auth-form input {
    height: 54px;
    border-radius: 14px;
    font-size: 16px;
  }

  .auth-form .primary-button {
    min-height: 54px;
    border-radius: 14px;
  }
}

@media (max-width: 390px) {
  .auth-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-brand img {
    width: 52px;
    height: 40px;
  }

  .auth-brand strong {
    font-size: 27px;
  }

  .auth-brand small {
    font-size: 10.5px;
  }

  .auth-card {
    padding-left: 19px;
    padding-right: 19px;
  }

  .auth-card h1 {
    font-size: 36px;
  }
}
