/* DFADeals forgotten-password and reset pages — page-scoped. */

.dfa-forgotten-page {
  --dfa-forgot-red: #ef001c;
  --dfa-forgot-red-dark: #c40012;
  --dfa-forgot-red-press: #a80010;
  --dfa-forgot-page: #ffffff;
  --dfa-forgot-text: #151515;
  --dfa-forgot-muted: #666666;
  --dfa-forgot-border: #e5e5e5;
  --dfa-forgot-field-border: #d8d8dc;
  --dfa-forgot-blush: #fff1f3;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 32px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  background: var(--dfa-forgot-page);
  color: var(--dfa-forgot-text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.dfa-forgotten-page *,
.dfa-forgotten-page *::before,
.dfa-forgotten-page *::after {
  box-sizing: border-box;
}

body.dfa-forgotten-active {
  background-color: #ffffff;
  overflow-x: hidden;
}

body.dfa-forgotten-active #container {
  background-color: #ffffff;
  min-height: 0;
}

body.dfa-forgotten-active #content {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  background: transparent;
  padding-bottom: 0 !important;
  min-height: 0;
}

body.dfa-forgotten-active #column-left,
body.dfa-forgotten-active #column-right {
  display: none !important;
}

body.dfa-forgotten-active .breadcrumb,
body.dfa-forgotten-active .dfa-breadcrumb,
body.dfa-forgotten-active .dfa-account-breadcrumb {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.dfa-forgotten-active .dfa-footer {
  margin-top: 0;
}

.dfa-forgotten-page .dfa-forgotten-columns {
  display: none !important;
}

.dfa-forgotten-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.dfa-forgotten-hero {
  text-align: center;
  padding: 8px 0 8px;
}

.dfa-forgotten-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 0 16px;
  border-radius: 50%;
  background: var(--dfa-forgot-blush);
  color: var(--dfa-forgot-red);
  font-size: 20px;
}

.dfa-forgotten-heading {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dfa-forgot-text);
}

.dfa-forgotten-lead {
  margin: 0 auto 22px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dfa-forgot-muted);
}

.dfa-forgotten-alert {
  margin: 0 0 16px;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #f0c2c6;
  background: var(--dfa-forgot-blush);
  color: #8a1018;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.dfa-forgotten-alert[hidden] {
  display: none !important;
}

.dfa-forgotten-field {
  margin: 0 0 18px;
}

.dfa-forgotten-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dfa-forgot-text);
}

.dfa-forgotten-input {
  display: block;
  width: 100%;
  min-height: 52px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--dfa-forgot-field-border);
  border-radius: 14px;
  background: #fff;
  color: var(--dfa-forgot-text);
  font-size: 16px;
  line-height: 1.3;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.dfa-forgotten-input::placeholder {
  color: #b0b0b0;
}

.dfa-forgotten-input:hover {
  border-color: #c8c8cc;
}

.dfa-forgotten-input:focus,
.dfa-forgotten-input:focus-visible {
  outline: none;
  border-color: var(--dfa-forgot-red);
  box-shadow: 0 0 0 3px rgba(239, 0, 28, 0.16);
}

.dfa-forgotten-input.is-invalid {
  border-color: var(--dfa-forgot-red);
}

.dfa-forgotten-error {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--dfa-forgot-red);
}

.dfa-forgotten-error[hidden] {
  display: block !important;
  visibility: hidden;
}

.dfa-forgotten-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #ef001c;
  background-image: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.dfa-forgotten-submit:hover {
  background: var(--dfa-forgot-red-dark);
  color: #fff;
}

.dfa-forgotten-submit:focus-visible {
  outline: 2px solid var(--dfa-forgot-red);
  outline-offset: 3px;
}

.dfa-forgotten-submit:active {
  background: var(--dfa-forgot-red-press);
  color: #fff;
}

.dfa-forgotten-submit:disabled,
.dfa-forgotten-page.is-submitting .dfa-forgotten-submit {
  background: #f07a82;
  color: #fff;
  cursor: not-allowed;
}

.dfa-forgotten-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  flex: 0 0 14px;
}

.dfa-forgotten-submit.is-loading .dfa-forgotten-spinner {
  display: inline-block;
  animation: dfa-forgotten-spin 0.7s linear infinite;
}

@keyframes dfa-forgotten-spin {
  to { transform: rotate(360deg); }
}

.dfa-forgotten-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  color: var(--dfa-forgot-red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dfa-forgotten-back:hover,
.dfa-forgotten-back:focus-visible {
  color: var(--dfa-forgot-red-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dfa-forgotten-back:focus-visible {
  outline: 2px solid var(--dfa-forgot-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.dfa-forgotten-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  color: #888;
  font-size: 13px;
  line-height: 1.4;
}

.dfa-forgotten-security i {
  color: var(--dfa-forgot-muted);
  font-size: 13px;
}

.dfa-forgotten-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dfa-forgot-red);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.dfa-forgotten-text-btn:hover,
.dfa-forgotten-text-btn:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dfa-forgotten-text-btn:focus-visible {
  outline: 2px solid var(--dfa-forgot-red);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .dfa-forgotten-page {
    padding: 48px 24px 64px;
  }

  .dfa-forgotten-heading {
    font-size: 32px;
  }

  .dfa-forgotten-hero {
    padding-top: 12px;
  }
}

@media (max-width: 991px) {
  .dfa-forgotten-page {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 374px) {
  .dfa-forgotten-heading {
    font-size: 24px;
  }
}
