/* CafeAriel unified authentication. The existing theme stylesheet remains the visual base. */
#onModal .ca-auth-panel[hidden] { display: none !important; }
#onModal .ca-auth-panel-switch { margin: 12px 0 0; text-align: center; color: var(--ca-muted, #737373); font-size: 12px; }
#onModal .ca-auth-panel-switch button { padding: 0 4px; border: 0; background: transparent; color: var(--ca-primary, #315a52); font-weight: 800; text-decoration: underline; cursor: pointer; }
#onModal .ca-auth-unavailable { padding: 12px; border-radius: 10px; background: #fff3e8; color: #7b431a; line-height: 1.9; }
.ca-auth-required { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 16px; border: 1px solid var(--ca-line, #e2d6c5); border-radius: 14px; background: var(--ca-surface, #fffdf8); }
.ca-auth-required p { margin: 0; }
.ca-auth-required .cr-primary-btn, .ca-auth-shortcode-gateway .cr-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 10px; background: var(--ca-primary, #315a52); color: #fff; text-decoration: none; font-weight: 800; }
.ca-auth-shortcode-gateway { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 12px; padding: 14px; border: 1px solid var(--ca-line, #e2d6c5); border-radius: 12px; background: var(--ca-surface, #fffdf8); }
.ca-auth-shortcode-gateway p { margin: 0; }
.ca-auth-page-unified .ca-auth-page-switch a { cursor: pointer; }
.ca-auth-page-unified .cr-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 11px 18px; border-radius: 12px; }
.ca-auth-noscript { margin-top: 20px; }
@media (max-width: 600px) {
  .ca-auth-required { align-items: stretch; }
  .ca-auth-required .cr-primary-btn, .ca-auth-shortcode-gateway .cr-primary-btn { width: 100%; }
  .ca-auth-shortcode-gateway { align-items: stretch; }
}


/* Shared password-recovery panel inside the single central auth dialog. */
#onModal .ca-auth-lost-panel { max-height: min(70vh, 650px); overflow-y: auto; overscroll-behavior: contain; }
#onModal .ca-lost-password { max-width: 100%; margin: 0; padding: 8px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: right; }
#onModal .ca-lost-password h2 { margin: 0 0 8px; text-align: center; font-size: 19px; color: var(--ca-text, #29423b); }
#onModal .ca-lost-password p { margin: 0 0 16px; text-align: center; color: var(--ca-muted, #737373); font-size: 12px; line-height: 1.9; }
#onModal .ca-lost-password__icon { display: none; }
#onModal .ca-lost-password label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 800; color: var(--ca-text, #29423b); }
#onModal .ca-lost-password__input-wrap { position: relative; margin-bottom: 13px; }
#onModal .ca-lost-password__input-wrap i { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #888; font-size: 13px; pointer-events: none; }
#onModal .ca-lost-password__input-wrap input { width: 100%; min-height: 45px; box-sizing: border-box; padding: 11px 38px 11px 13px; border: 1px solid var(--ca-line, #e2d6c5); border-radius: 11px; background: #fff; color: var(--ca-text, #29423b); font: inherit; outline: none; }
#onModal .ca-lost-password__input-wrap input:focus { border-color: var(--ca-primary, #315a52); box-shadow: 0 0 0 3px rgba(49,90,82,.08); }
#onModal .ca-lost-password__button { width: 100%; min-height: 44px; border: 0; border-radius: 11px; background: var(--ca-primary, #315a52); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
#onModal .ca-lost-password__button:disabled { opacity: .65; cursor: wait; }
#onModal .ca-lost-password__status { display: none; margin: 0 0 13px; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.8; }
#onModal .ca-lost-password__status.is-visible { display: flex; gap: 8px; align-items: flex-start; }
#onModal .ca-lost-password__status.is-success { background: #e8f5ed; color: #24633e; }
#onModal .ca-lost-password__status.is-error { background: #fff0f0; color: #a33a3a; }
#onModal .ca-lost-password__status.is-loading { background: #f5f5f5; color: #666; }
#onModal .ca-auth-forgot-switch { margin-top: 9px; }
#onModal .ca-auth-tabs[hidden] { display: none !important; }
