:root {
  --s-primary: #0b1440;
  --s-primary-strong: #162677;
  --s-accent: #5aa9e6;
  --s-surface: #ffffff;
  --s-muted: #d8ddf0;
  --s-pill: rgba(255, 255, 255, 0.12);
  --s-shadow-strong: 0 22px 44px rgba(0, 0, 0, 0.25);
}

.start-ny-dugnad {
  margin: 0;
  font-family: 'Roboto', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0b1440;
  color: var(--s-primary);
}

.start-welcome-shell {
  position: relative;
  z-index: 1;
}

.start-welcome-screen {
  width: 100%;
  color: #fff;
  padding: 28px 16px 36px;
  background: linear-gradient(150deg, #0b1440 0%, #0f1b55 45%, #1b2f86 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.start-welcome-brand {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top:25px;
}

.start-welcome-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--s-pill);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.start-welcome-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.start-welcome-logo-text {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.start-welcome-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: auto 0;
}

.start-welcome-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.start-welcome-copy {
  text-align: center;
}

.start-welcome-title {
  color: #fff;
}

.start-welcome-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.start-welcome-card {
  margin-top: 6px;
  background: #ffffff;
  color: var(--s-primary);
}

.start-welcome-label {
  color: #4b5563;
}

.start-welcome-footer-link {
  padding-bottom: 4px;
}

.start-welcome-footer-link a {
  color: #e8ecff;
}

.start-welcome-footer-link a:hover {
  color: #ffffff;
}

.auth-card .start-welcome-footer-link a {
  color: var(--auth-primary-strong);
}
.auth-card .start-welcome-footer-link a:hover {
  color: var(--auth-primary);
}

.start-existing-panel {
  background: #ffffff;
  color: #0b1440;
  border: 1px solid rgba(11, 20, 64, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(11, 20, 64, 0.12);
}

.start-existing-text {
  margin: 0;
  font-weight: 600;
}

.start-existing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-existing-primary {
  width: 100%;
}

.start-existing-link {
  text-align: center;
}

.ny-otp-screen {
  background: linear-gradient(160deg, #0b1440 0%, #1b2f86 60%, #223b9f 100%);
}

/* start_ny_dugnad.css */
.ny-dugnad-details-shell {
  padding-top: 0;                  /* ikke ekstra her */
}

.ny-dugnad-details-screen {
  background: linear-gradient(160deg, #0b1440 0%, #13215d 55%, #1f307e 100%);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 2rem;
  justify-content: flex-start;
}

.ny-dugnad-details-screen .auth-card {
  background: #ffffff;
  color: #0b1440;
  gap: 14px;
}

.ny-dugnad-passord-screen {
  background: linear-gradient(160deg, #0b1440 0%, #13215d 55%, #1f307e 100%);
  color: #fff;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  justify-content: center;
}

.ny-passord-card {
  gap: 14px;
}

.auth-input-readonly {
  background: rgba(11, 20, 64, 0.04);
  color: #6b7280;
}

.setup-transition-shell {
  will-change: transform, opacity;
}

.setup-transition-shell.setup-page-pre-enter {
  opacity: 0;
  transform: translate3d(32px, 0, 0);
}

.setup-page-enter-from-right {
  animation: setupPageEnterFromRight 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.setup-page-enter-from-left {
  animation: setupPageEnterFromLeft 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.setup-page-exit-to-left {
  animation: setupPageExitToLeft 0.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.setup-page-exit-to-right {
  animation: setupPageExitToRight 0.6s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* Loader overlay for OTP request */
.start-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 20, 64, 0.55);
  backdrop-filter: blur(2px);
  z-index: 2000;
}

.start-loader.is-visible {
  display: flex;
}

.start-loader__box {
  background: #ffffff;
  color: #0b1440;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  justify-content: center;
}

.start-loader__spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(11, 20, 64, 0.18);
  border-top-color: #0b1440;
  border-radius: 50%;
  animation: startLoaderSpin 0.8s linear infinite;
}

.start-loader__label {
  margin: 0;
  font-weight: 700;
  color: #0b1440;
}

@keyframes startLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes setupPageEnterFromRight {
  from {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes setupPageEnterFromLeft {
  from {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes setupPageExitToLeft {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-32px, 0, 0);
  }
}

@keyframes setupPageExitToRight {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(32px, 0, 0);
  }
}


/* vi trenger ikke egen justify her lenger */
@media (min-height: 700px) {
  .ny-dugnad-details-screen {
    padding-top: 0;
  }
  .ny-dugnad-passord-screen {
    padding-top: 2.5rem;
  }
}

@media (min-width: 768px) {
  .start-welcome-screen {
    padding: 42px 24px 48px;
  }
}
