.bpm-auth-v2 {
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, .08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
  color: var(--bpm-ink);
  font-family: var(--bpm-font);
  min-height: 100vh;
}

.bpm-auth-v2 .bpm-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  min-height: 100vh;
  position: relative;
}

.bpm-auth-v2 .bpm-auth-language {
  display: inline-flex;
  gap: 8px;
  position: fixed;
  right: 28px;
  top: 24px;
  z-index: 10;
}

.bpm-auth-v2 .bpm-auth-language__button {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .12s ease;
}

.bpm-auth-v2 .bpm-auth-language__button span {
  align-items: center;
  background: #eef2ff;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  min-width: 30px;
}

.bpm-auth-v2 .bpm-auth-language__button strong {
  font-size: 12px;
  font-weight: 800;
}

.bpm-auth-v2 .bpm-auth-language__button:hover,
.bpm-auth-v2 .bpm-auth-language__button.is-active {
  background: #ffffff;
  border-color: #9db5f6;
  color: #1d4ed8;
}

.bpm-auth-v2 .bpm-auth-language__button:focus-visible,
.bpm-auth-v2 .bpm-auth-submit:focus-visible,
.bpm-auth-v2 .bpm-password-toggle:focus-visible,
.bpm-auth-v2 a:focus-visible,
.bpm-auth-v2 input:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
  outline: 2px solid transparent;
}

.bpm-auth-v2 .bpm-auth-visual {
  align-items: flex-end;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 58, 138, .91)),
    url("/assets/images/gears-2020552.jpg") center/cover no-repeat;
  color: #ffffff;
  display: flex;
  min-height: 100vh;
  padding: 72px;
}

.bpm-auth-v2 .bpm-auth-visual__content {
  max-width: 640px;
}

.bpm-auth-v2 .bpm-auth-eyebrow,
.bpm-auth-v2 .bpm-auth-brand__eyebrow {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.bpm-auth-v2 .bpm-auth-visual .bpm-auth-eyebrow {
  color: #bfdbfe;
}

.bpm-auth-v2 .bpm-auth-visual h1 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 680px;
}

.bpm-auth-v2 .bpm-auth-visual p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 580px;
}

.bpm-auth-v2 .bpm-auth-panel {
  align-items: center;
  background: rgba(255, 255, 255, .88);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 88px 48px 40px;
}

.bpm-auth-v2 .bpm-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
  display: grid;
  gap: 26px;
  max-width: 440px;
  padding: 38px;
  width: 100%;
}

.bpm-auth-v2 .bpm-auth-brand {
  align-items: center;
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}

.bpm-auth-v2 .bpm-auth-logo {
  display: block;
  height: auto;
  max-height: 128px;
  max-width: min(260px, 78vw);
  object-fit: contain;
  width: auto;
}

.bpm-auth-v2 .bpm-auth-brand h2 {
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.bpm-auth-v2 .bpm-auth-brand p {
  color: #5f6475;
  line-height: 1.55;
  margin: 0;
}

.bpm-auth-v2 .bpm-auth-version {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  margin-top: 12px;
  padding: 5px 10px;
  text-transform: uppercase;
}

.bpm-auth-v2 .bpm-auth-form {
  display: grid;
  gap: 18px;
}

.bpm-auth-v2 .bpm-auth-validation:empty {
  display: none;
}

.bpm-auth-v2 .bpm-auth-validation.validation-summary-valid {
  display: none;
}

.bpm-auth-v2 .bpm-auth-field {
  display: grid;
  gap: 8px;
}

.bpm-auth-v2 .bpm-auth-field label,
.bpm-auth-v2 .bpm-auth-field__top label {
  color: #243044;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.bpm-auth-v2 .bpm-auth-field__top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bpm-auth-v2 .bpm-auth-field__top a,
.bpm-auth-v2 .bpm-auth-register a {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.bpm-auth-v2 .bpm-auth-input-wrap {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  display: flex;
  min-height: 48px;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.bpm-auth-v2 .bpm-auth-input-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.bpm-auth-v2 .bpm-auth-input-wrap > i {
  color: #667085;
  font-size: 20px;
  left: 14px;
  position: absolute;
}

.bpm-auth-v2 .bpm-auth-input {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #111827;
  font-size: 15px;
  min-height: 48px;
  padding: 0 14px 0 44px;
}

.bpm-auth-v2 .bpm-auth-input:focus {
  background: transparent;
  box-shadow: none;
}

.bpm-auth-v2 .bpm-auth-input::placeholder {
  color: #8a94a6;
}

.bpm-auth-v2 .bpm-password-field .bpm-auth-input {
  padding-right: 54px;
}

.bpm-auth-v2 .bpm-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #4b5563;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
}

.bpm-auth-v2 .bpm-password-toggle:hover {
  background: #f1f5f9;
  color: #1d4ed8;
}

.bpm-auth-v2 .bpm-auth-options {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.bpm-auth-v2 .bpm-auth-check {
  align-items: center;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  margin: 0;
}

.bpm-auth-v2 .bpm-auth-check__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.bpm-auth-v2 .bpm-auth-check__box {
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  width: 18px;
}

.bpm-auth-v2 .bpm-auth-check__input:checked + .bpm-auth-check__box {
  background: #2563eb;
  border-color: #2563eb;
}

.bpm-auth-v2 .bpm-auth-check__input:checked + .bpm-auth-check__box::after {
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  transform: rotate(45deg);
  width: 5px;
}

.bpm-auth-v2 .bpm-auth-check__input:focus-visible + .bpm-auth-check__box {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.bpm-auth-v2 .bpm-switch {
  align-items: center;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.4;
  margin: 0;
  min-height: 44px;
  position: relative;
}

.bpm-auth-v2 .bpm-switch__input {
  height: 1px;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.bpm-auth-v2 .bpm-switch__track {
  align-items: center;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  padding: 3px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
  width: 52px;
}

.bpm-auth-v2 .bpm-switch__thumb {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
  display: block;
  height: 20px;
  transform: translateX(0);
  transition: transform .18s ease, box-shadow .18s ease;
  width: 20px;
}

.bpm-auth-v2 .bpm-switch__input:checked + .bpm-switch__track {
  background: #2563eb;
  border-color: #2563eb;
}

.bpm-auth-v2 .bpm-switch__input:checked + .bpm-switch__track .bpm-switch__thumb {
  transform: translateX(24px);
}

.bpm-auth-v2 .bpm-switch__input:focus-visible + .bpm-switch__track,
.bpm-auth-v2 .bpm-switch__input:focus + .bpm-switch__track {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .18), inset 0 1px 2px rgba(15, 23, 42, .08);
}

.bpm-auth-v2 .bpm-switch:has(.bpm-switch__input:disabled) {
  color: #64748b;
  cursor: not-allowed;
}

.bpm-auth-v2 .bpm-auth-actions {
  margin-top: 4px;
}

.bpm-auth-v2 .bpm-auth-submit {
  align-items: center;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
  width: 100%;
}

.bpm-auth-v2 .bpm-auth-submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
  transform: translateY(-1px);
}

.bpm-auth-v2 .bpm-auth-submit:active {
  box-shadow: none;
  transform: translateY(0);
}

.bpm-auth-v2 .bpm-auth-submit[aria-busy="true"] {
  cursor: wait;
  opacity: .86;
}

.bpm-auth-v2 .bpm-auth-submit__content,
.bpm-auth-v2 .bpm-auth-submit__loading {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.bpm-auth-v2 .bpm-auth-submit__loading {
  display: none;
}

.bpm-auth-v2 .bpm-auth-submit[aria-busy="true"] .bpm-auth-submit__content {
  display: none;
}

.bpm-auth-v2 .bpm-auth-submit[aria-busy="true"] .bpm-auth-submit__loading {
  display: inline-flex;
}

.bpm-auth-v2 .bpm-auth-register {
  color: #5f6475;
  font-size: 14px;
  text-align: center;
}

.bpm-auth-v2 .bpm-auth-register p,
.bpm-auth-v2 .bpm-auth-panel footer {
  margin: 0;
}

.bpm-auth-v2 .bpm-auth-panel .text-muted,
.bpm-auth-v2 .bpm-auth-panel small {
  color: #667085 !important;
}

.bpm-auth-v2 .text-danger {
  font-size: 13px;
}

@media (max-width: 1040px) {
  .bpm-auth-v2 .bpm-auth-shell {
    grid-template-columns: 1fr;
  }

  .bpm-auth-v2 .bpm-auth-visual {
    align-items: flex-end;
    min-height: 170px;
    padding: 76px 32px 24px;
  }

  .bpm-auth-v2 .bpm-auth-visual h1 {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .bpm-auth-v2 .bpm-auth-visual p {
    font-size: 15px;
    line-height: 1.45;
  }

  .bpm-auth-v2 .bpm-auth-panel {
    min-height: auto;
    padding: 18px 24px 28px;
  }

  .bpm-auth-v2 .bpm-auth-card {
    gap: 18px;
    padding: 28px;
  }

  .bpm-auth-v2 .bpm-auth-logo {
    max-height: 82px;
  }

  .bpm-auth-v2 .bpm-auth-brand h2 {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .bpm-auth-v2 .bpm-auth-brand p {
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .bpm-auth-v2 .bpm-auth-language {
    left: 16px;
    right: 16px;
    top: 16px;
  }

  .bpm-auth-v2 .bpm-auth-language__button {
    flex: 1;
    justify-content: center;
  }

  .bpm-auth-v2 .bpm-auth-visual {
    min-height: 138px;
    padding: 70px 20px 16px;
  }

  .bpm-auth-v2 .bpm-auth-visual h1 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .bpm-auth-v2 .bpm-auth-visual p {
    font-size: 13px;
    line-height: 1.35;
  }

  .bpm-auth-v2 .bpm-auth-panel {
    padding: 14px 16px 22px;
  }

  .bpm-auth-v2 .bpm-auth-card {
    gap: 14px;
    padding: 18px 20px;
  }

  .bpm-auth-v2 .bpm-auth-logo {
    max-height: 70px;
  }

  .bpm-auth-v2 .bpm-auth-brand h2 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .bpm-auth-v2 .bpm-auth-brand {
    gap: 12px;
  }

  .bpm-auth-v2 .bpm-auth-form {
    gap: 14px;
  }

  .bpm-auth-v2 .bpm-auth-field__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
