/* =========================================================
   AConfession Auth Page
   Path: public_html/assets/css/auth.css
   Scope: login / register only.
   ========================================================= */
.acf-auth-page {
  direction: rtl;
  text-align: right;
  display: grid;
  gap: 12px;
  padding: 8px 0 12px;
}

.acf-auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 28px;
  padding: 15px;
  background:
    radial-gradient(260px 160px at 95% -12%, rgba(124,58,237,.28), transparent 72%),
    radial-gradient(250px 170px at 0% 8%, rgba(14,165,233,.18), transparent 72%),
    linear-gradient(145deg, rgba(15,23,42,.94), rgba(4,8,17,.94));
  box-shadow: 0 18px 48px rgba(0,0,0,.30);
}

.acf-auth-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 34%);
  pointer-events: none;
}

.acf-auth-head,
.acf-auth-tabs,
.acf-auth-notice,
.acf-auth-form {
  position: relative;
  z-index: 1;
}

.acf-auth-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.acf-auth-eyebrow {
  margin: 0;
  color: #99f6e4;
  font-size: 11px;
  font-weight: 950;
}

.acf-auth-head h1 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.35px;
}

.acf-auth-description {
  margin: 0;
  color: #aab5c8;
  font-size: 13px;
  line-height: 1.75;
}

.acf-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,.15);
  background: rgba(2,6,23,.46);
}

.acf-auth-tabs a,
.acf-auth-submit,
.acf-auth-secondary {
  -webkit-tap-highlight-color: transparent;
}

.acf-auth-tabs a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 17px;
  color: #aab5c8;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.acf-auth-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.96), rgba(6,182,212,.96));
  box-shadow: 0 10px 25px rgba(6,182,212,.16);
}

.acf-auth-svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: block;
  object-fit: contain;
  flex: 0 0 22px;
}

.acf-auth-tabs .acf-auth-svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-basis: 20px;
}

.acf-auth-submit .acf-auth-svg,
.acf-auth-secondary .acf-auth-svg {
  width: 23px;
  height: 23px;
  min-width: 23px;
  flex-basis: 23px;
}

.acf-auth-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15,23,42,.64);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.65;
}

.acf-auth-notice.is-error {
  color: #fecaca;
  border-color: rgba(248,113,113,.32);
  background: rgba(127,29,29,.22);
}

.acf-auth-notice.is-ok {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.30);
  background: rgba(20,83,45,.20);
}

.acf-auth-notice.is-warn {
  color: #fde68a;
  border-color: rgba(245,158,11,.30);
  background: rgba(120,53,15,.20);
}

.acf-auth-form {
  display: none;
  gap: 12px;
}

.acf-auth-form.is-active {
  display: grid;
}

.acf-auth-field {
  display: grid;
  gap: 7px;
}

.acf-auth-field > span {
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 950;
}

.acf-auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 18px;
  background: rgba(2,6,23,.78) !important;
  background-color: rgba(2,6,23,.78) !important;
  color: #f8fafc;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #67e8f9;
  color-scheme: dark;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 850;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.acf-auth-field input:focus {
  border-color: rgba(34,211,238,.62);
  background: rgba(2,6,23,.88) !important;
  background-color: rgba(2,6,23,.88) !important;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.acf-auth-field input:-webkit-autofill,
.acf-auth-field input:-webkit-autofill:hover,
.acf-auth-field input:-webkit-autofill:focus,
.acf-auth-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #67e8f9;
  box-shadow: 0 0 0 1000px #020617 inset !important;
  -webkit-box-shadow: 0 0 0 1000px #020617 inset !important;
  border-color: rgba(34,211,238,.42);
  transition: background-color 999999s ease-in-out 0s;
}

.acf-auth-field small {
  color: #aab5c8;
  font-size: 12px;
  line-height: 1.65;
}

.acf-auth-submit,
.acf-auth-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease, background .16s ease, border-color .16s ease;
}

.acf-auth-submit {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 12px 28px rgba(6,182,212,.18);
}

.acf-auth-secondary {
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.76);
  color: #e5e7eb;
}

.acf-auth-submit:hover,
.acf-auth-secondary:hover {
  filter: brightness(1.05);
}

.acf-auth-submit:active,
.acf-auth-secondary:active {
  transform: translateY(1px) scale(.99);
}

.acf-auth-submit:disabled,
.acf-auth-secondary:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: grayscale(.18);
  box-shadow: none;
}

.acf-auth-submit.is-loading,
.acf-auth-secondary.is-loading {
  pointer-events: none;
  opacity: .70;
}

.acf-auth-secondary.is-copied {
  color: #bbf7d0;
  border-color: rgba(34,197,94,.42);
  background: rgba(20,83,45,.24);
}

.acf-auth-split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.acf-auth-wait[hidden],
.acf-auth-notice[hidden] {
  display: none !important;
}

.acf-auth-wait {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}

.acf-auth-wait-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(10px);
}

.acf-auth-wait-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(148,163,184,.18);
  padding: 18px;
  background:
    radial-gradient(220px 150px at 50% -10%, rgba(6,182,212,.16), transparent 70%),
    linear-gradient(145deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

.acf-auth-wait-media {
  width: 84px;
  height: 84px;
  margin: 0 auto 2px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.acf-auth-wait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acf-auth-wait-card h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.acf-auth-wait-card p {
  margin: 0;
  color: #aab5c8;
  line-height: 1.7;
  font-size: 13px;
}

.acf-auth-countdown {
  color: #99f6e4;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 1px;
}

body.auth-wait-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .acf-auth-card {
    padding: 13px;
    border-radius: 24px;
  }

  .acf-auth-head h1 {
    font-size: 21px;
  }

  .acf-auth-tabs a,
  .acf-auth-submit,
  .acf-auth-secondary {
    font-size: 12px;
  }

  .acf-auth-split-actions {
    gap: 7px;
  }
}

/* Auth recovery questions + password reset link */
.acf-auth-link-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  font-size: 12.5px;
  font-weight: 900;
}

.acf-auth-link-row a {
  color: #99f6e4;
  text-decoration: none;
}

.acf-auth-link-row a:hover {
  text-decoration: underline;
}

.acf-auth-recovery-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148,163,184,.15);
  border-radius: 22px;
  padding: 12px;
  background: rgba(15,23,42,.38);
}

.acf-auth-recovery-box > b {
  color: #f8fafc;
  font-size: 13.5px;
}

.acf-auth-recovery-box > small {
  color: #aab5c8;
  font-size: 12px;
  line-height: 1.65;
}

.acf-auth-recovery-page .acf-auth-card {
  max-width: 560px;
  margin-inline: auto;
}

/* Auth split settings / wizard overrides */
.acf-auth-form .acf-auth-eyebrow { font-size: var(--auth-eyebrow-size, 11px); color: var(--auth-eyebrow-color, #99f6e4); }
.acf-auth-form .acf-auth-head h1 { font-size: var(--auth-title-size, 23px); color: var(--auth-title-color, #fff); }
.acf-auth-form .acf-auth-description { font-size: var(--auth-description-size, 13px); color: var(--auth-description-color, #aab5c8); }
.acf-auth-form .acf-auth-field > span { font-size: var(--auth-label-size, 12px); color: var(--auth-label-color, #e5e7eb); }
.acf-auth-form .acf-auth-field input { font-size: var(--auth-input-size, 15px); color: var(--auth-input-color, #f8fafc); -webkit-text-fill-color: var(--auth-input-color, #f8fafc); }
.acf-auth-form .acf-auth-field small,
.acf-auth-form .acf-auth-recovery-box small { font-size: var(--auth-hint-size, 12px); color: var(--auth-hint-color, #aab5c8); }
.acf-auth-form .acf-auth-submit,
.acf-auth-form .acf-auth-secondary,
.acf-auth-form .acf-auth-open-account { font-size: var(--auth-button-size, 13px); color: var(--auth-button-text-color, #fff); }
.acf-auth-form .acf-auth-svg,
.acf-auth-form .acf-auth-submit .acf-auth-svg,
.acf-auth-form .acf-auth-secondary .acf-auth-svg { width: var(--auth-icon-size, 22px); height: var(--auth-icon-size, 22px); min-width: var(--auth-icon-size, 22px); flex-basis: var(--auth-icon-size, 22px); }
.acf-auth-link-row a { font-size: var(--auth-link-size, 12px); color: var(--auth-link-color, #67e8f9); }

.acf-auth-wizard-steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.acf-auth-wizard-steps::-webkit-scrollbar { display: none; }
.acf-auth-step-dot {
  min-height: 34px;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  background: rgba(2,6,23,.42);
  color: var(--auth-step-color, #aab5c8);
  font-size: var(--auth-step-size, 11px);
  font-weight: 950;
  pointer-events: none;
}
.acf-auth-step-dot.is-active {
  color: var(--auth-step-active-color, #fff);
  border-color: rgba(34,211,238,.36);
  background: rgba(14,165,233,.16);
}
.acf-auth-step-dot .acf-auth-svg {
  width: calc(var(--auth-icon-size, 22px) - 4px);
  height: calc(var(--auth-icon-size, 22px) - 4px);
  min-width: calc(var(--auth-icon-size, 22px) - 4px);
  flex-basis: calc(var(--auth-icon-size, 22px) - 4px);
}
.acf-auth-wizard-panel { display: none; gap: 12px; }
.acf-auth-wizard-panel.is-active { display: grid; }
.acf-auth-created {
  text-align: center;
  padding: 10px 0 2px;
}
.acf-auth-created h2 {
  margin: 0;
  color: var(--auth-title-color, #fff);
  font-size: calc(var(--auth-title-size, 23px) - 2px);
}
.acf-auth-created p {
  margin: 0;
  color: var(--auth-description-color, #aab5c8);
  font-size: var(--auth-description-size, 13px);
  line-height: 1.8;
}
.acf-auth-created-data {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(2,6,23,.54);
  border: 1px solid rgba(148,163,184,.16);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 900;
}
.acf-auth-open-account { text-decoration: none; }
button[data-display-mode="icon"] { width: 48px; padding-inline: 0; }
button[data-display-mode="icon"] .acf-auth-svg { margin: 0; }
