/* Login page redesign — loaded ONLY by login.php, after style.css, auth.css,
   ai-jobhelper-design-system.css and login.css.

   Scoping note: login.css is shared with /tilmeld/ and /glemt-kodeord/, and
   those pages use the same .login-shell / .login-hero / .auth-right classes.
   Everything below therefore lives in its own file that only the login page
   loads, so the signup and forgot-password pages keep their current design. */

/* ===== 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,
.login-hero .login-ai-card {
  display: none;
}

.login-hero h1 {
  /* auto top margin balances the column vertically */
  margin: auto 0 0;
  padding-top: 44px;
  font-size: clamp(34px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #1B2733;
  /* the headline is sized to sit on ONE line — see the width note below */
  white-space: nowrap;
}

/* Safety net in case a <br> ever comes back into the translated string. */
.login-hero h1 br {
  display: none;
}

.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);
}

/* The feature list stands in for a product video that does not exist yet. It
   is deliberately frameless so it melts into the beige panel; when the video
   lands, keep this width and top margin and give it a soft frame. */
.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);
}

/* The '#' in the inline SVG must stay percent-encoded as %23 — a literal '#'
   ends the data URI and the check mark silently disappears. */
.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 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* generous top padding keeps the language dropdown clear of the title */
  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,
.auth-right .auth-form-copy {
  display: none;
}

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

/* ===== provider buttons ===== */
.auth-oauth {
  display: none !important;
  gap: 10px;
  margin-top: 24px;
}

.auth-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(27, 39, 51, 0.15);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #1B2733;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-oauth-btn:hover {
  background: rgba(27, 39, 51, 0.03);
  border-color: rgba(27, 39, 51, 0.24);
}

.auth-oauth-btn:focus-visible {
  outline: none;
  border-color: rgba(22, 140, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 140, 164, 0.12);
}

.auth-oauth-btn svg {
  flex: none;
}

/* login.js sets .is-loading + disabled while the provider redirect is pending */
.auth-oauth-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

/* ===== dividers ===== */
.auth-right .auth-divider::before,
.auth-right .auth-divider::after {
  background: rgba(27, 39, 51, 0.09);
}

.auth-right .auth-divider--oauth {
  display: none !important;
  margin: 22px 0 18px;
}

.auth-right .auth-divider--oauth span {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(27, 39, 51, 0.5);
  white-space: nowrap;
  background: #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 + .auth-row {
  margin-top: 10px;
}

.auth-right input[type="email"],
.auth-right input[type="password"],
.auth-right input[type="text"] {
  width: 100%;
  height: 48px;
  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;
}

/* The eye toggle sits inside .password-wrap; keep it clear of the new radius */
.auth-right .password-wrap input[type="password"],
.auth-right .password-wrap input[type="text"] {
  padding-right: 46px;
}

.auth-right .auth-remember-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.auth-right .auth-remember-row span {
  color: rgba(27, 39, 51, 0.66);
  font-weight: 400;
}

.auth-right .auth-remember-row a {
  font-size: 13.5px;
  font-weight: 550;
  color: #168CA4;
}

.auth-right .auth-btn {
  width: 100%;
  height: 48px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #168CA4;
  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;
}

.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;
  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;
}

/* ===== 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 {
    /* the one-line constraint only holds in the two-column layout */
    white-space: normal;
    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;
  }
}
