/* Forgot-password page redesign â€” loaded ONLY by glemt-kodeord.php, after
   style.css, auth.css, ai-jobhelper-design-system.css, login.css,
   glemt-kodeord.css and auth-lang-select.css.

   Scoping note: login.css is shared with /login/ and /tilmeld/, and all three
   pages use the same .login-shell / .login-hero / .auth-right classes. This
   file is therefore only loaded here, mirroring login-redesign.css and
   tilmeld-redesign.css so the three pages stay visually identical.

   One deliberate difference: the login/signup redesigns hide .auth-form-copy.
   Here #form-copy is swapped by glemt-kodeord.js on every step ("code sent",
   "code verified") so it stays visible. */

/* ===== page + card shell ===== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #F7F5F2;
}

.login-shell {
  width: min(1080px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 47%);
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(20, 32, 45, 0.04),
    0 24px 60px -12px rgba(20, 32, 45, 0.14);
}

/* ===== LEFT PANEL ===== */
.login-hero {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 52px 52px 56px;
  background: #F1EEE9;
}

.login-hero .login-brand {
  margin: 0;
}

.login-hero .login-brand img {
  width: 176px;
}

.login-hero .login-eyebrow {
  display: none;
}

/* The <br> in forgot.heroTitle is kept â€” this headline breaks on two lines
   exactly like the signup one. */
.login-hero h1 {
  margin: auto 0 0;
  padding-top: 44px;
  font-size: clamp(32px, 3.1vw, 39px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #1B2733;
}

.login-hero .login-lead {
  max-width: 38ch;
  margin: 14px 0 0;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(27, 39, 51, 0.62);
}

.login-hero .login-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 400px;
  margin: 30px 0 auto;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid rgba(27, 39, 51, 0.09);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.login-hero .login-feature-grid span {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 2px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: -0.003em;
  color: rgba(27, 39, 51, 0.66);
}

.login-hero .login-feature-grid span + span {
  border-top: 1px solid rgba(27, 39, 51, 0.055);
}

/* '#' must stay percent-encoded as %23 or the data URI is cut short. */
.login-hero .login-feature-grid span::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 0;
  opacity: 0.55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E6B7A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}

/* ===== RIGHT PANEL ===== */
.auth-right {
  /* required: the language dropdown is positioned against this */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 78px 56px 56px;
  background: #fff;
}

.auth-right .auth-form-box {
  width: 100%;
  max-width: 372px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-right .auth-mobile-logo,
.auth-right .auth-form-eyebrow {
  display: none;
}

.auth-right .auth-form-box > h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1B2733;
}

/* Step copy â€” kept visible (see header note). */
.auth-right .auth-form-copy {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(27, 39, 51, 0.58);
}

/* ===== status message ===== */
.auth-right .auth-message {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.auth-right .auth-message:empty {
  display: none;
}

.auth-right .auth-message.error {
  border-color: rgba(185, 28, 28, 0.14);
  color: #B42318;
  background: #FEF3F2;
}

.auth-right .auth-message.success {
  border-color: rgba(22, 140, 164, 0.18);
  color: #0F7F97;
  background: #EAF6F9;
}

/* Final "password updated" state: glemt-kodeord.js injects a .auth-link-btn
   into the message. Render it as the primary pill. */
.auth-right .auth-message .auth-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #168CA4;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.auth-right .auth-message .auth-link-btn:hover {
  background: #0F7F97;
  color: #fff;
}

/* ===== fields ===== */
.auth-right form {
  margin-top: 0;
}

/* Labels stay in the DOM for screen readers; the placeholder carries the
   visible name. */
.auth-right .auth-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.auth-right .auth-row {
  margin: 0;
}

.auth-right .auth-row + .auth-row {
  margin-top: 10px;
}

.auth-right input[type="email"],
.auth-right input[type="password"],
.auth-right input[type="text"] {
  width: 100%;
  height: 48px;
  min-height: 0;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(27, 39, 51, 0.12);
  border-radius: 12px;
  background: #FAF8F5;
  box-shadow: none;
  font-size: 14.5px;
  font-weight: 400;
  color: #1B2733;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-right input::placeholder {
  color: rgba(27, 39, 51, 0.45);
  font-weight: 400;
}

.auth-right input:focus {
  outline: none;
  background: #fff;
}

.auth-right .password-wrap input[type="password"],
.auth-right .password-wrap input[type="text"] {
  padding-right: 46px;
}

/* OTP field: bigger, spaced digits; placeholder stays normal size. */
.auth-right input.otp-code-input {
  height: 52px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 8px;
  text-align: center;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.auth-right input.otp-code-input::placeholder {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ===== primary button ===== */
.auth-right .auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  min-height: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #168CA4;
  background-image: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  transition: background 0.15s ease;
}

.auth-right .auth-btn:hover {
  background: #0F7F97;
  box-shadow: none;
  transform: none;
}

/* ===== resend row (step 2) ===== */
.auth-right .auth-resend {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(27, 39, 51, 0.55);
}

.auth-right .auth-resend a {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #168CA4;
}

.auth-right .auth-resend a:hover {
  color: #0F7F97;
  text-decoration: underline;
}

/* ===== footer: back to login + help ===== */
.auth-right .auth-footer-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13.5px;
  color: rgba(27, 39, 51, 0.55);
}

.auth-right .auth-footer-line > span {
  font-weight: 400;
}

.auth-right .auth-footer-line .auth-link-btn {
  display: inline;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #168CA4;
  text-decoration: none;
}

.auth-right .auth-footer-line .auth-link-btn:hover {
  background: none;
  color: #0F7F97;
  text-decoration: underline;
}

.auth-right .forgot-help-row {
  margin: 10px 0 0;
  text-align: center;
}

.auth-right .forgot-help-row a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(27, 39, 51, 0.5);
}

.auth-right .forgot-help-row a:hover {
  color: #168CA4;
  text-decoration: underline;
}

/* ===== SMALL SCREENS ===== */
@media (max-width: 900px) {
  .auth-page {
    padding: 20px 16px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .login-hero {
    padding: 36px 28px 32px;
  }

  .login-hero h1 {
    margin-top: 0;
    padding-top: 26px;
  }

  .login-hero .login-feature-grid {
    margin-bottom: 0;
  }

  .auth-right {
    padding: 62px 28px 44px;
  }

  .auth-right .auth-lang-switcher {
    top: 14px;
    right: 18px;
  }
}
