*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --auth-primary: #0b1440;
  --auth-primary-strong: #162677;
  --auth-accent: #5aa9e6;
  --auth-muted: #6b7280;
  --auth-surface: #ffffff;
  --auth-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  --auth-radius: 18px;
  --auth-radius-pill: 999px;
}

/* auth_base.css */
.setup-transition-shell {
  /* fjern min-height her, den dobler høyden */
  /* min-height: 100vh; */
}

.auth-shell {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0px;
}


.auth-screen {
  min-height: 100vh;              /* én plass holder */
  display: flex;
  flex-direction: column;
  justify-content: center;         /* alltid sentrert */
  align-items: center;
  gap: 24px;
}

.auth-title {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  line-height: 1.2;
  color: var(--auth-primary);
}

.auth-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--auth-muted);
  line-height: 1.6;
}

.auth-note {
  display: block;
  color: var(--auth-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-card {
  width: 90%;
  background: var(--auth-surface);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--auth-radius-pill);
  background: rgba(11, 20, 64, 0.08);
  color: var(--auth-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--auth-surface);
  border: 1px solid rgba(11, 20, 64, 0.08);
  border-radius: var(--auth-radius-pill);
  padding: 12px 14px;
  box-shadow: var(--auth-shadow);
}

.auth-input-prefix {
  font-weight: 800;
  color: var(--auth-primary);
  letter-spacing: 0.03em;
}

.auth-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.02rem;
  color: var(--auth-primary);
  background: transparent;
  padding: 4px 2px;
}

.auth-input::placeholder {
  color: #8b92a9;
}

.auth-input-group:focus-within {
  box-shadow: 0 0 0 2px rgba(90, 169, 230, 0.25), var(--auth-shadow);
}

.auth-otp-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(11, 20, 64, 0.08);
  padding: 14px 16px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  background: var(--auth-surface);
  color: var(--auth-primary);
  box-shadow: var(--auth-shadow);
}

.auth-otp-input:focus {
  outline: 2px solid rgba(90, 169, 230, 0.35);
  outline-offset: 4px;
}

.auth-primary-btn {
  width: 100%;
  border: none;
  border-radius: var(--auth-radius-pill);
  background: linear-gradient(135deg, #5aa9e6, #0b1440);
  color: #fff;
  padding: 16px 18px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(11, 20, 64, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(11, 20, 64, 0.35);
}

.auth-primary-btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.auth-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.auth-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  font-size: 0.95rem;
}

.auth-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.auth-field-readonly .auth-input[readonly] {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: default;
}

.auth-secondary-link {
  text-align: center;
  font-weight: 600;
}

.auth-secondary-link a {
  color: var(--auth-primary-strong);
  text-decoration: none;
}

.auth-secondary-link a:hover {
  text-decoration: underline;
}

.auth-alert {
  width: 100%;
  padding: 12px 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  color: #b91c1c;
}

@media (min-width: 768px) {
  .auth-shell {
    padding: 42px 24px 60px;
  }

  .auth-card {
    padding: 22px 20px;
  }
}
.auth-shell {
  padding-top: 4px;
  padding-bottom: 4px;
}

.auth-screen,
.ny-dugnad-details-screen {
  min-height: 100vh;
  justify-content: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.auth-title {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.auth-card {
  padding: 16px 16px;
}
