.login-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(23, 23, 23, 0.06), transparent 26%),
    var(--editorial-canvas);
  color: var(--editorial-ink);
}

.auth-site-header {
  background: rgba(250, 250, 249, 0.84);
}

.auth-nav-shell {
  gap: 24px;
}

.auth-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.home-link {
  white-space: nowrap;
}

.auth-hero {
  overflow: hidden;
}

.auth-hero-grid {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 448px);
  align-items: center;
  gap: 72px;
  padding-block: 72px 88px;
}

.auth-context,
.auth-card {
  min-width: 0;
}

.auth-context {
  max-width: 640px;
}

.auth-context h1 {
  max-width: 650px;
  margin: 0;
  color: var(--editorial-ink);
  font-size: clamp(3.15rem, 5.2vw, 4.72rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.auth-context-lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--editorial-muted);
  font-size: 18px;
  line-height: 1.72;
}

.auth-assurance {
  display: grid;
  gap: 18px;
  max-width: 580px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.auth-assurance li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: var(--editorial-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.assurance-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--editorial-ink);
  font-size: 13px;
  font-weight: 700;
}

.auth-card {
  width: min(100%, 448px);
  justify-self: end;
  padding: 32px;
  border: 1px solid rgba(210, 210, 207, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--editorial-shadow);
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-card-header h2 {
  margin: 0;
  color: var(--editorial-ink);
  font-size: clamp(2rem, 2.2vw, 2.35rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.auth-card-header p {
  margin: 14px 0 0;
  color: var(--editorial-muted);
  font-size: 15px;
  line-height: 1.65;
}

.platform-block-notice {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid rgba(154, 99, 52, 0.18);
  border-radius: 18px;
  background: rgba(154, 99, 52, 0.08);
  color: var(--editorial-ink);
}

.platform-block-notice[hidden] {
  display: none;
}

.platform-block-notice strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.platform-block-notice p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-card.is-mobile-blocked .login-form {
  opacity: 0.52;
}

.login-card.is-mobile-blocked .input-shell,
.login-card.is-mobile-blocked .password-toggle,
.login-card.is-mobile-blocked .form-link {
  pointer-events: none;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--editorial-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--editorial-line-strong);
  border-radius: 18px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-shell:focus-within {
  border-color: var(--editorial-ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 23, 0.08);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  background: transparent;
  color: var(--editorial-ink);
  font-size: 15px;
  outline: 0;
}

.input-shell input::placeholder {
  color: var(--editorial-subtle);
}

.password-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  margin-right: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--editorial-soft);
  color: var(--editorial-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.password-toggle:hover {
  background: #e8e8e4;
}

.form-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.form-link,
.auth-card-footer a,
.login-noscript a {
  color: var(--editorial-ink);
  font-weight: 650;
}

.form-link:hover,
.auth-card-footer a:hover,
.login-noscript a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.form-alert {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 18px;
  background: #fff3ef;
  color: #92220f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form-alert[hidden] {
  display: none;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  gap: 10px;
  margin-top: 2px;
}

.submit-spinner {
  width: 16px;
  height: 16px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: login-spin 760ms linear infinite;
}

.submit-button.is-loading .submit-spinner {
  display: inline-block;
}

.auth-card-footer {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--editorial-line);
  color: var(--editorial-muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
}

.compatibility-link {
  display: inline-flex;
  justify-content: center;
  color: var(--editorial-muted) !important;
  font-size: 13px;
  font-weight: 600 !important;
}

.login-noscript {
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 18px;
  background: #fff3ef;
  color: #92220f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .auth-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    padding-block: 56px 72px;
  }

  .auth-card {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .auth-nav-shell {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .auth-nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .auth-context h1 {
    font-size: clamp(2.7rem, 11vw, 3.7rem);
  }

  .auth-context-lead {
    font-size: 17px;
  }

  .auth-assurance {
    gap: 14px;
  }

  .auth-card {
    width: 100%;
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  .auth-nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-link,
  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  .auth-hero-grid {
    min-height: auto;
    gap: 28px;
    padding-block: 36px 48px;
  }

  .auth-context-lead {
    margin-top: 24px;
    font-size: 16px;
  }

  .auth-assurance li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    font-size: 15px;
  }

  .assurance-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .auth-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .auth-card-header h2 {
    font-size: 1.95rem;
  }

  .password-toggle {
    padding-inline: 12px;
  }
}
