/*
 * Zlix Shared Authentication UI v0.21.2b
 *
 * Authentication behavior and reusable field treatment only.
 * Application shells, branding and page layout remain surface-specific.
 */

.zlix-auth-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
}

.zlix-auth-password-field > input {
  min-width: 0;
}

.zlix-auth-password-field
.zlix-auth-password-toggle,
[data-zlix-password-toggle] {
  align-self: stretch;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

[data-zlix-password-toggle]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

[data-zlix-password-toggle]:disabled {
  cursor: default;
  opacity: .58;
}

.zlix-auth-caps,
[data-zlix-caps-lock] {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

[data-zlix-caps-lock][hidden] {
  display: none !important;
}

.zlix-auth-alert,
[data-zlix-auth-alert] {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(40, 72, 99, .25);
  border-radius: 9px;
  background: rgba(40, 72, 99, .055);
  line-height: 1.45;
}

.zlix-auth-alert.is-error,
[data-zlix-auth-alert].is-error {
  border-color: rgba(180, 35, 24, .42);
  border-left-width: 4px;
  background: rgba(180, 35, 24, .055);
  color: #7a271a;
}

.zlix-auth-alert.is-success,
[data-zlix-auth-alert].is-success {
  border-color: rgba(26, 127, 91, .34);
  border-left-width: 4px;
  background: rgba(26, 127, 91, .06);
  color: #155d46;
}

.zlix-auth-alert.is-info,
[data-zlix-auth-alert].is-info {
  border-color: rgba(20, 90, 134, .30);
  border-left-width: 4px;
  background: rgba(20, 90, 134, .055);
  color: #244e6f;
}

[data-zlix-auth-alert][hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-zlix-password-toggle] {
    scroll-behavior: auto;
  }
}
