/* Account-closure request and receipt only. Shared account pages stay unchanged. */
.closure-page {
  margin-top: 0;
  background: var(--cream, #faf7f1);
}

.closure-page .auth-hero {
  position: relative;
  padding-block: clamp(54px, 6vw, 80px) clamp(68px, 7vw, 96px);
  isolation: isolate;
}

.closure-page .auth-hero::before {
  position: absolute;
  z-index: -1;
  bottom: 8px;
  left: max(-72px, calc((100vw - 1320px) / 2));
  width: clamp(210px, 25vw, 330px);
  height: 250px;
  background: url('/assets/images/decor/account-botanical-corner-bottom-left.png') left bottom / contain no-repeat;
  opacity: .25;
  pointer-events: none;
  content: '';
}

.closure-page .auth-layout {
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.closure-page .auth-intro { padding: 10px 0 54px; }
.closure-page .auth-intro .public-eyebrow { color: var(--olive-dark); font-size: .78rem; letter-spacing: .16em; }
.closure-page .auth-intro h1 { max-width: 100%; margin-bottom: 18px; font-size: clamp(2.45rem, 4.2vw, 3.25rem); line-height: 1.08; text-wrap: balance; }
.closure-page .closure-leaf-divider { display: block; width: 180px; height: auto; margin: 0 0 26px; opacity: .72; }
.closure-page .auth-intro p { max-width: 34rem; margin: 0 0 18px; }
.closure-page .auth-intro .closure-lead { color: var(--text-primary); font-size: 1.13rem; line-height: 1.65; }
.closure-page .auth-intro .closure-assurance { max-width: 29rem; margin-top: 30px; border-left: 2px solid #b5bb9c; padding-left: 20px; font-size: .94rem; line-height: 1.75; }
.closure-page .closure-assurance strong { display: block; margin-bottom: 4px; color: var(--olive-dark); }

.closure-page .auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfd4bf;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(76, 66, 43, .07);
  padding: clamp(28px, 3.2vw, 40px);
}

.closure-page .auth-card::before {
  position: absolute;
  top: -22px;
  right: -25px;
  width: 175px;
  height: 155px;
  background: url('/assets/images/decor/meet-at-ours-botanical-corner-top-left.png') center / contain no-repeat;
  opacity: .22;
  transform: scaleX(-1);
  pointer-events: none;
  content: '';
}

.closure-page .auth-card > * { position: relative; }
.closure-page .auth-card h2 { margin-bottom: 24px; color: var(--olive-dark); font-size: 1.75rem; line-height: 1.25; }
.closure-page .auth-card label { margin: 0 0 12px; font-size: .9rem; line-height: 1.6; }
.closure-page .account-form-grid { margin: 0; }
.closure-page .account-form-grid textarea { min-height: 176px; background: #faf7f0; border-color: #cfc6b4; border-radius: 13px; padding: 14px 16px; }
.closure-page .account-form-grid textarea:focus { outline: 2px solid #7a8561; outline-offset: 3px; border-color: var(--olive); }
.closure-page .auth-card .form-helper { margin-top: 16px; font-size: .84rem; line-height: 1.7; }
.closure-page .auth-card .form-helper strong { color: var(--olive-dark); font-weight: 600; }
.closure-page .auth-submit { margin-top: 24px; min-height: 48px; transition: background-color 160ms ease, box-shadow 160ms ease; }
.closure-page .auth-submit:hover { box-shadow: 0 5px 12px rgba(75, 88, 54, .14); }
.closure-page .auth-card .auth-switch { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #e7dfcf; font-size: .88rem; }
.closure-page .auth-card a { color: var(--olive-dark); text-underline-offset: 4px; }
.closure-page .auth-card a:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }
.closure-page #requestStatus:empty { display: none; }
.closure-page #closureRequestReceived p:not(.auth-switch) { margin: 0 0 20px; color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.closure-page #closureRequestReceived strong { color: var(--olive-dark); font-weight: 650; }
.closure-page #requestLoading[hidden] { display: none; }

@media (max-width: 900px) {
  .closure-page .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: 620px; }
  .closure-page .auth-intro { padding-bottom: 0; }
  .closure-page .auth-intro h1 { max-width: 16ch; }
  .closure-page .auth-card { width: 100%; }
}

@media (max-width: 560px) {
  .closure-page .auth-hero { padding-block: 36px 60px; }
  .closure-page .auth-intro h1 { font-size: 2.4rem; }
  .closure-page .closure-leaf-divider { width: 144px; margin-bottom: 20px; }
  .closure-page .auth-intro p { font-size: 1rem; }
  .closure-page .auth-intro .closure-assurance { margin-top: 24px; padding-left: 16px; font-size: .9rem; }
  .closure-page .auth-card { padding: 28px 24px; border-radius: 20px; }
  .closure-page .auth-hero::before { bottom: 0; width: 190px; height: 180px; opacity: .18; }
}

@media (prefers-reduced-motion: no-preference) {
  .closure-page .auth-card { animation: closure-appear 280ms ease-out both; }
  @keyframes closure-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
