/* Messages in the card, right above the fields (templates/_auth_alert.html),
   and the password strength meter (templates/_password_meter.html). Used by
   the sign-in pages and Change password. */
.auth-alerts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.auth-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid; font-size: 15px; line-height: 1.45; text-align: left;
}
.auth-alert-icon { flex-shrink: 0; margin-top: 1px; }
.auth-alert-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.auth-alert-error { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.auth-alert-error .auth-alert-icon { color: #DC2626; }
.auth-alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.auth-alert-info { background: #EEF2FF; border-color: #C7D2FE; color: #312E81; }
.auth-alert a {
  color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
  display: inline-block; padding: 12px 0; margin: -12px 0;   /* 44px tall to tap without moving the text */
}
/* Fields from a failed log in */
.auth-field input.is-invalid.is-invalid { border-color: #DC2626; }
.auth-field input.is-invalid.is-invalid:focus { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.15); }

/* Password strength meter */
.pw-meter { margin-top: 8px; }
.pw-meter-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pw-meter-bar span { height: 6px; border-radius: 99px; background: #E5E7EB; transition: background .15s; }
.pw-meter[data-level="1"] .pw-meter-bar span:nth-child(-n+1) { background: #DC2626; }
.pw-meter[data-level="2"] .pw-meter-bar span:nth-child(-n+2) { background: #D97706; }
.pw-meter[data-level="3"] .pw-meter-bar span { background: #059669; }
.pw-meter-text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #4B5563; }
.pw-meter-label { font-weight: 700; }
.pw-meter[data-level="1"] .pw-meter-label { color: #B91C1C; }
.pw-meter[data-level="2"] .pw-meter-label { color: #B45309; }
.pw-meter[data-level="3"] .pw-meter-label { color: #047857; }
.pw-rule-hint { font-size: 14px; line-height: 1.45; color: #6B7280; margin-top: 6px; }
