/* ==========================================================================
   ZedHome — Admin sign-in pages (admin/auth/login, forgot-password,
   reset-password), via partials/admin-auth-open.php / -close.php.
   Looks like the console it opens: white top bar, paper background, one
   bordered panel with head / body / foot rows (the same shape as the
   dashboard's Revenue / Needs attention panels), orange primary button like
   the console's. No photo, no marketing copy. Everything is .aa*.
   ========================================================================== */
.aa { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--color-paper); }

/* ---- Top bar ---- */
.aa-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 clamp(16px, 3vw, 28px); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.aa-bar__brand { display: inline-flex; align-items: center; gap: 12px; }
.aa-bar__brand img { display: block; height: 30px; width: auto; }
.aa-bar__tag { padding-left: 12px; border-left: 1px solid var(--color-border-strong); font-size: var(--fs-md); font-weight: 600; color: var(--color-ink); line-height: 20px; }
.aa-bar__back { font-size: var(--fs-md); font-weight: 500; color: var(--color-text); }
.aa-bar__back:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Panel ---- */
.aa-main { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: clamp(40px, 11vh, 112px) 16px 48px; }
.aa-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.aa-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.aa-panel__head h1 { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em; color: var(--color-ink); }
.aa-panel__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--color-text-soft); white-space: nowrap; }
.aa-panel__meta svg { width: 13px; height: 13px; }
.aa-panel__body { padding: 20px; }
.aa-panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--color-border); background: var(--color-paper); border-radius: 0 0 var(--radius-md) var(--radius-md); font-size: var(--fs-md); color: var(--color-text); }

.aa-text { margin: 0 0 18px; font-size: var(--fs-md); line-height: 1.6; color: var(--color-text); }
.aa-text strong { font-weight: 600; color: var(--color-ink); overflow-wrap: anywhere; }
.aa-text:last-child { margin-bottom: 0; }
.aa-fine { margin: 16px 4px 0; font-size: var(--fs-xs); line-height: 1.55; color: var(--color-text-soft); }

/* ---- Messages: a plain line with a coloured rule, not a coloured box ---- */
.aa-msg { margin: 0 0 18px; padding: 2px 0 2px 12px; border-left: 3px solid; font-size: var(--fs-md); line-height: 1.5; }
.aa-msg--err { border-color: var(--color-danger); color: #8e2a1f; }
.aa-msg--ok { border-color: var(--color-verified); color: #125c32; }

/* ---- Fields ---- */
.aa-form { display: grid; gap: 16px; }
.aa-field { display: grid; gap: 6px; }
.aa-field label { font-size: var(--fs-md); font-weight: 600; color: var(--color-ink); }
.aa-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.aa-field__help { font-size: var(--fs-sm); color: var(--color-text-soft); }
.aa-field input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: var(--color-surface); font: inherit; font-size: var(--fs-body); color: var(--color-ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.aa-field input:hover { border-color: #bfb6a9; }
.aa-field input:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(233, 122, 26, 0.18); }
.aa-field input[aria-invalid="true"] { border-color: var(--color-danger); }
.aa-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }
.aa-field__box { position: relative; }
.aa-field__box > svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; transform: translateY(-50%); color: var(--color-text-soft); pointer-events: none; transition: color var(--dur-fast); }
.aa-field__box:focus-within > svg { color: var(--color-brand-dark); }
.aa-field__box input { padding-left: 40px; }
.aa-field__pw { position: relative; }
.aa-field__pw input { padding-right: 44px; }
.aa-field__eye { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; color: var(--color-text-soft); cursor: pointer; }
.aa-field__eye svg { width: 18px; height: 18px; }
.aa-field__eye:hover { color: var(--color-ink); }
.aa-field__eye:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; }

/* ---- Links + buttons ---- */
.aa-link { font-size: var(--fs-md); font-weight: 600; color: var(--color-brand-dark); text-underline-offset: 3px; }
.aa-link:hover { text-decoration: underline; }
.aa-link--quiet { font-weight: 500; color: var(--color-text); }
.aa-link--quiet:hover { color: var(--color-ink); }
.aa-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; margin-top: 4px; border: 1px solid var(--color-brand); border-radius: var(--radius-sm); background: var(--color-brand); font: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--color-on-brand); cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.aa-btn:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }
.aa-btn:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

@media (max-width: 480px) {
  .aa-bar { height: 56px; }
  .aa-bar__brand img { height: 26px; }
  .aa-main { padding-top: 24px; }
  .aa-panel__head, .aa-panel__body, .aa-panel__foot { padding-left: 16px; padding-right: 16px; }
}
