/* Login — Preclinic "login-cover" page (templates/registration/login.html). Vendor style.css does the layout;
   this file adds the brand mark, language switcher, fonts and RTL mirroring. */

.ac-login-page {
  font-family: "Inter", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
  background: #fff;
}
html[dir="rtl"] .ac-login-page {
  font-family: "Noto Kufi Arabic", sans-serif;
}
.ac-login-page :is(input, button, select) {
  font-family: inherit;
}

/* The cover panel uses Preclinic's primary instead of the light lavender default. */
.ac-login-page .auth-bg .login-backgrounds.bg-primary {
  background: var(--primary, #2E37A4) !important;
}
.ac-login-page .auth-bg .login-backgrounds .authentication-card .authen-overlay-item {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.ac-login-page .authen-head h1 {
  line-height: 1.4;
}
html[dir="rtl"] .ac-login-page .auth-bg .login-backgrounds .cover-img {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}

/* Brand mark (no logo file for the platform). */
.ac-login-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #2E37A4);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/* Language switcher — top corner of the form column. */
.ac-login-page .col-lg-6.col-md-12 {
  position: relative;
}
.ac-login-lang {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 2;
}
.ac-login-lang .ac-lang-switcher__select {
  appearance: auto;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--gray-900, #111827);
  cursor: pointer;
}

/* Inputs: keep the icon + field visually joined in both directions. */
.ac-login-page .input-group > .form-control:focus,
.ac-login-page .pass-group > .form-control:focus {
  box-shadow: none;
}
.ac-login-page .input-group:focus-within > .input-group-text,
.ac-login-page .input-group:focus-within > .form-control {
  border-color: var(--primary, #2E37A4);
}
.ac-login-page .pass-group:focus-within {
  border-color: var(--primary, #2E37A4) !important;
}
.ac-login-page .ac-login-password-toggle {
  cursor: pointer;
}
html[dir="rtl"] .ac-login-page .form-control.ps-0 {
  padding-right: 0 !important;
  padding-left: 0.75rem !important;
}
.ac-login-page a {
  text-decoration: none;
}
