
[data-bs-theme-base="neutral"] {
  --tblr-gray-50: #fafafa;
  --tblr-gray-100: #f5f5f5;
  --tblr-gray-200: #e5e5e5;
  --tblr-gray-300: #d4d4d4;
  --tblr-gray-400: #a3a3a3;
  --tblr-gray-500: #737373;
  --tblr-gray-600: #525252;
  --tblr-gray-700: #404040;
  --tblr-gray-800: #262626;
  --tblr-gray-900: #171717;
  --tblr-gray-950: #0a0a0a;
}

.g-recaptcha {
  overflow: hidden;
  width: 298px;
  height: 74px;
}

.g-recaptcha iframe {
  margin: -1px 0px 0px -2px;
}

/* ── Page background ── */
body.jm-ui-auth {
  font-family: "Onest", sans-serif !important;
  color: #14171d !important;
  background: url('/images/bg.webp') center center / cover no-repeat fixed !important;
  background-color: #f3f5f7 !important;
  min-height: 100vh;
}

body.jm-ui-auth::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(243, 245, 247, 0.6) !important;
  pointer-events: none;
  z-index: 0;
}

.jm-ui-auth .page {
  position: relative;
  min-height: 100vh;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.jm-ui-auth .page-center {
  align-items: center;
}

.jm-ui-auth .container-tight {
  width: min(100%, 30rem);
}

/* ── Logo / brand ── */
.logo-image {
  height: 2.25rem;
  width: auto;
}

.jm-ui-auth .jm-auth-brand {
  margin-bottom: 1.5rem !important;
}

.jm-ui-auth .jm-auth-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.jm-auth-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #14171d;
  letter-spacing: -0.02em;
}

/* ── Intro text above card ── */
.jm-ui-auth .jm-auth-intro {
  max-width: 30rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.jm-ui-auth .jm-auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(86, 175, 64, 0.3);
  background: rgba(86, 175, 64, 0.08);
  color: #348e23;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.jm-ui-auth .jm-auth-intro h1 {
  margin: 0.6rem 0 0.6rem;
  color: #14171d;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.jm-ui-auth .jm-auth-intro p {
  margin: 0;
  color: #728477;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
}

/* ── Card ── */
.jm-ui-auth .card {
  border: 1px solid rgba(20, 23, 29, 0.07);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 19, 106, 0.1);
  overflow: hidden;
}

.jm-ui-auth .card-body,
.jm-ui-auth form.card {
  padding: 2rem;
}

/* ── Typography ── */
.jm-ui-auth h1,
.jm-ui-auth h2,
.jm-ui-auth h3,
.jm-ui-auth .card-title,
.jm-ui-auth .h2 {
  font-family: "Onest", sans-serif;
  color: #14171d;
  letter-spacing: -0.03em;
}

.jm-ui-auth .h2,
.jm-ui-auth h2.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.jm-ui-auth .text-secondary,
.jm-ui-auth .form-label-description,
.jm-ui-auth .text-muted {
  color: #728477 !important;
}

/* ── Form elements ── */
.jm-ui-auth .form-label,
.jm-ui-auth .form-check-label {
  color: #14171d;
  font-weight: 700;
  font-size: 0.875rem;
}

.jm-ui-auth .form-control,
.jm-ui-auth .form-select,
.jm-ui-auth .input-group-text {
  min-height: 3rem;
  border-radius: 0.75rem;
  border: 2px solid #f3f5f7;
  background: #f3f5f7;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  color: #14171d;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: none;
}

.jm-ui-auth .form-control:focus,
.jm-ui-auth .form-select:focus {
  border-color: #56af40;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(86, 175, 64, 0.12);
  outline: none;
}

.jm-ui-auth .form-control::placeholder {
  color: #728477;
  font-weight: 600;
}

.jm-ui-auth .input-group-text {
  border-left: none;
  background: #f3f5f7;
  border-color: #f3f5f7;
}

.jm-ui-auth .input-group .form-control:focus + .input-group-text,
.jm-ui-auth .input-group-flat .form-control:focus ~ .input-group-text {
  border-color: #56af40;
  background: #ffffff;
}

.jm-ui-auth .form-check-input:checked {
  background-color: #56af40;
  border-color: #56af40;
}

.jm-ui-auth .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(86, 175, 64, 0.12);
  border-color: #56af40;
}

/* ── Button ── */
.jm-ui-auth .btn-primary {
  background: #56af40;
  border-color: #56af40;
  color: #ffffff;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(86, 175, 64, 0.25);
}

.jm-ui-auth .btn-primary:hover {
  background: #348e23;
  border-color: #348e23;
  box-shadow: 0 12px 28px rgba(86, 175, 64, 0.3);
  transform: translateY(-1px);
}

.jm-ui-auth .btn-primary:active {
  transform: translateY(0);
}

/* ── Links ── */
.jm-ui-auth a {
  color: #56af40;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.jm-ui-auth a:hover {
  color: #348e23;
}

/* ── Errors ── */
.jm-ui-auth .invalid-feedback {
  font-size: 0.83rem;
  font-weight: 600;
}

/* ── Footer note (below card) ── */
.jm-ui-auth .jm-auth-footer-note {
  color: #728477 !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.jm-ui-auth .jm-auth-footer-note a {
  color: #56af40;
}

/* ── Forgot password link ── */
.jm-ui-auth .form-label-description a {
  color: #728477;
  font-weight: 600;
  font-size: 0.85rem;
}

.jm-ui-auth .form-label-description a:hover {
  color: #56af40;
}

/* ── Mobile ── */
@media screen and (max-width: 767px) {
  .jm-ui-auth .container-tight {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .jm-ui-auth .card {
    border-radius: 1.25rem;
  }

  .jm-ui-auth .card-body,
  .jm-ui-auth form.card {
    padding: 1.5rem;
  }

  .jm-ui-auth .jm-auth-intro h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
}

@media screen and (max-width: 420px) {
  .jm-ui-auth .card {
    border-radius: 1rem;
  }

  .jm-ui-auth .card-body,
  .jm-ui-auth form.card {
    padding: 1.25rem;
  }
}
