/* Account pages (login, sign-up, password): the public site's relief behind
   a single card, in the system's blue. */
.auth-layout-root {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bs-body-bg);
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask: radial-gradient(ellipse 80% 100% at 50% 50%, #000 45%, transparent 100%);
  mask: radial-gradient(ellipse 80% 100% at 50% 50%, #000 45%, transparent 100%);
}

.auth-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 27rem;
  padding: 2.5rem 2.25rem 2rem;
  border: 1px solid var(--bs-gray-200);
  border-radius: 1.25rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.12);
}

[data-bs-theme="dark"] .auth-card {
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.45);
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  display: block;
  width: auto;
  max-width: 13rem;
  height: auto;
  max-height: 6.5rem;
  object-fit: contain;
}

.auth-title {
  margin: 0 0 0.35rem;
  color: var(--bs-gray-900);
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.auth-subtitle {
  margin: 0 0 1.75rem;
  color: var(--bs-gray-500);
  font-size: 0.92rem;
  text-align: center;
}

/* "Caps Lock ligado" under the password (login.html). */
.auth-caps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  color: var(--bs-warning-active, #b45309);
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-caps i {
  color: inherit;
}

.auth-caps[hidden] {
  display: none;
}

/* The card shaken by a failed login (login models). */
.auth-card.is-shake {
  animation: auth-shake 0.45s ease-in-out 2;
}

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card.is-shake {
    animation: none;
  }
}

/* The password's eye, inside its floating field. */
.auth-password .form-control {
  padding-right: 3rem;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--bs-gray-500);
  transform: translateY(-50%);
}

.auth-eye:hover,
.auth-eye:focus-visible {
  background: var(--bs-gray-200);
  color: var(--bs-primary);
}

.auth-eye i {
  color: inherit;
}

.auth-row {
  margin: 1rem 0 1.5rem;
}

/* "Continuar logado": a box as wide and as round as the fields above it,
   switched on and off by a click; its checkbox is hidden (still there for
   the keyboard and screen readers) and the box itself shows the state. */
.auth-remember {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid var(--bs-gray-300);
  border-radius: 0.475rem;
  background: var(--bs-gray-100);
  color: var(--bs-gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.auth-remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-remember:hover {
  border-color: var(--bs-gray-400);
}

.auth-remember:has(input:checked) {
  border-color: var(--bs-primary);
  background: rgba(var(--bs-primary-rgb), 0.06);
  color: var(--bs-primary);
  font-weight: 600;
}

.auth-remember:has(input:focus-visible) {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

/* The main button; .auth-btn-mint is its name on sign-up and password reset. */
.auth-btn-mint,
.auth-submit {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #ffffff;
  font-weight: 700;
}

.auth-btn-mint:hover,
.auth-btn-mint:focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible {
  background: var(--bs-primary-active, var(--bs-primary));
  color: #ffffff;
}

.auth-btn-mint i,
.auth-submit i,
.auth-layout-root .alert-danger i {
  color: inherit;
}

.auth-link-accent {
  color: var(--bs-primary);
  font-weight: 600;
}

.auth-link-accent:hover {
  text-decoration: underline;
}

.auth-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--bs-gray-600);
  font-size: 0.92rem;
}

.auth-card-foot:not(:has(*)) {
  display: none;
}

.auth-site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-site-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bs-gray-600);
}

.auth-site-links a:hover {
  color: var(--bs-primary);
}

.auth-site-links i {
  color: inherit;
  font-size: 0.8rem;
}

/* "Developed by SIRGEO": its icon and name in a small box under the card,
   as in the site's footer; the name in the icon's green to blue. */
.auth-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border: 1px solid var(--bs-gray-200);
  border-radius: 0.75rem;
  background: var(--bs-body-bg);
  color: var(--bs-gray-600);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-credit:hover,
.auth-credit:focus-visible {
  border-color: var(--bs-gray-300);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
}

.auth-credit img {
  display: block;
  width: 34px;
  height: 34px;
}

.auth-credit > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.78rem;
  line-height: 1.25;
}

.auth-credit-by {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-credit strong {
  background: linear-gradient(90deg, #4caf50, #3fc1d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.12em;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 2rem 1.5rem 1.75rem;
  }
}
