/* Staff/owner authentication actions and current-step error presentation. */
#auth-view .auth-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
#auth-view #mfa-panel .auth-secondary-actions .text-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 11px 12px;
  margin: 0;
  border: 1px solid var(--brand-line, #ead7ca);
  border-radius: 12px;
  background: #fffaf6;
  color: var(--brand, #a7441e);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}
#auth-view .auth-secondary-actions .text-button::before {
  content: '';
  display: block;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--auth-action-icon) center / contain no-repeat;
  mask: var(--auth-action-icon) center / contain no-repeat;
}
#auth-view #mfa-recovery {
  --auth-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='15' r='5' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='m11.5 11.5 8-8 2 2-2 2-2-2m0 4-2-2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#auth-view #mfa-cancel {
  --auth-action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5-7 7 7 7M2 12h13a6 6 0 0 1 6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#auth-view .auth-secondary-actions .text-button:focus-visible {
  outline: 3px solid var(--brand, #a7441e);
  outline-offset: 3px;
}
#auth-view #auth-error:not(:empty):not([hidden]) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #efcdbf;
  border-radius: 12px;
  background: #fff3ee;
  color: #923a26 !important;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#auth-view #auth-error:not(:empty)::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M12 7v6m0 4v-1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M12 7v6m0 4v-1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
  #auth-view #mfa-panel .auth-secondary-actions .text-button:hover { background: var(--brand-soft, #fff0e6); border-color: var(--brand, #a7441e); }
}
@media (max-width: 360px) {
  #auth-view .auth-secondary-actions { gap: 8px; }
  #auth-view #mfa-panel .auth-secondary-actions .text-button { gap: 7px; padding: 10px 8px; font-size: 13px; min-height: 54px; }
  #auth-view .auth-secondary-actions .text-button::before { flex-basis: 19px; width: 19px; height: 19px; }
}
#auth-view .auth-secondary-actions:has(#mfa-recovery[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 360px) and (max-height: 620px) {
  #auth-view:has(#mfa-panel:not([hidden])) > .auth-form { padding-top: 18px; padding-bottom: 15px; margin-bottom: 12px; }
  #auth-view .auth-secondary-actions { margin-top: 10px; }
}
