body.login.atentium-auth-page {
  min-height: 100vh;
  margin: 0 !important;
  font-family: 'IBM Plex Sans', 'Open Sans', sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(2, 132, 199, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%) !important;
  position: relative;
}

body.login.atentium-auth-page:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.06) 45%, rgba(0, 0, 0, 0) 100%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-layout {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 500px);
  gap: 56px;
  align-items: center;
}

.auth-brand {
  padding: 28px 16px 28px 0;
}

.auth-brand__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 48px;
}

.auth-brand__logo img {
  width: min(280px, 100%);
  height: auto;
  display: block;
}

.auth-brand__copy h2 {
  margin: 0;
  max-width: 460px;
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.auth-brand__copy p {
  max-width: 440px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: #475467;
}

.auth-panel {
  display: flex;
  justify-content: flex-end;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  padding: 38px 38px 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.12),
    0 2px 12px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-form {
  margin: 0;
}

.auth-form.is-hidden {
  display: none;
}

.auth-card__header {
  margin-bottom: 24px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f4f7fb;
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-card__header h1 {
  margin: 0;
  font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.auth-card__header p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: #475467;
}

.auth-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.6;
}

.auth-notice.is-hidden {
  display: none;
}

.auth-alert--error {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.auth-alert--success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input:focus-within {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.auth-input__icon {
  width: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #667085;
}

.auth-input .form-control {
  height: auto;
  padding: 17px 16px 17px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  color: #101828;
}

.auth-input .form-control:focus {
  box-shadow: none;
  outline: 0;
}

.auth-input--code .form-control {
  padding-right: 16px;
  text-align: center;
  letter-spacing: 0.24em;
  font-size: 24px;
  font-weight: 600;
}

.auth-code-input::placeholder {
  letter-spacing: 0.24em;
}

.auth-input__action {
  flex: 0 0 auto;
  padding: 0 18px 0 12px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.auth-input__action:hover,
.auth-input__action:focus {
  color: #0f172a;
  outline: 0;
  text-decoration: none;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 6px 0 24px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #475467;
  cursor: pointer;
}

.auth-checkbox input {
  margin: 0;
}

.auth-checkbox .checker {
  margin: 0;
}

.auth-checkbox > span:last-child {
  display: inline-block;
}

.auth-submit-btn,
.auth-secondary-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.auth-submit-btn {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1d2939 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.auth-secondary-btn {
  border: 1px solid #d0d5dd;
  color: #344054;
  background: #ffffff;
  box-shadow: none;
}

.auth-secondary-btn:hover,
.auth-secondary-btn:focus {
  color: #0f172a;
  border-color: #98a2b3;
  background: #f8fafc;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.auth-link:hover,
.auth-link:focus {
  color: #0f172a;
  text-decoration: none;
}

.auth-link--inline {
  margin-top: 14px;
  justify-content: flex-start;
  width: auto;
}

.auth-toggle-group {
  display: inline-flex;
  width: 100%;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 16px;
  background: #f4f7fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-toggle {
  flex: 1 1 50%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-toggle.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.auth-twofa-panel {
  display: none;
}

.auth-twofa-panel.is-active {
  display: block;
}

.auth-support-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #667085;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-block {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #b42318;
}

.form-group.has-error .auth-input {
  border-color: #fda29b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(240, 68, 56, 0.08);
}

.auth-footer {
  width: min(1140px, 100%);
  margin: 24px auto 0;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #667085;
}

@media (max-width: 991px) {
  .auth-shell {
    padding: 24px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .auth-brand {
    padding: 0;
  }

  .auth-brand__logo {
    margin-bottom: 28px;
  }

  .auth-brand__copy h2 {
    max-width: 560px;
    font-size: clamp(30px, 6vw, 42px);
  }

  .auth-panel {
    justify-content: flex-start;
  }

  .auth-card {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .auth-shell {
    padding: 18px;
  }

  .auth-layout {
    gap: 22px;
  }

  .auth-brand__logo {
    margin-bottom: 22px;
  }

  .auth-brand__logo img {
    width: min(260px, 100%);
  }

  .auth-brand__copy h2 {
    font-size: 30px;
  }

  .auth-brand__copy p {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .auth-card__header h1 {
    font-size: 28px;
  }

  .auth-submit-btn,
  .auth-secondary-btn,
  .auth-input {
    min-height: 54px;
  }
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 14px;
  }

  .auth-card {
    padding: 22px 18px 20px;
  }

  .auth-brand__copy h2 {
    font-size: 28px;
  }

  .auth-footer {
    margin-top: 18px;
    font-size: 12px;
  }
}
