/**
 * Şifre sıfırlama — login / kayıt ile uyumlu cam panel, CTA, captcha çerçevesi
 * custom.css sonrası (head.tpl)
 */

@keyframes alanxPwResetCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes alanxPwResetTitleShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes alanxPwResetBadgeGlow {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 26px rgba(56, 189, 248, 0.32);
  }
}

/* —— Logo —— */
body.page-pw-reset .pw-reset-page-shell__logo {
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.22));
  transition: filter 0.25s ease, transform 0.25s ease;
}

body.page-pw-reset .pw-reset-page-shell__logo-link:hover .pw-reset-page-shell__logo,
body.page-pw-reset .pw-reset-page-shell__logo-link:focus .pw-reset-page-shell__logo {
  filter: drop-shadow(0 6px 20px rgba(56, 189, 248, 0.35));
  transform: translateY(-1px);
}

/* —— Cam kart (custom’daki şeffaf kartın üzerine) —— */
body.page-pw-reset #main-body .primary-content .pw-reset-form-card.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.72), rgba(15, 23, 42, 0.56)) !important;
  background-color: transparent !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 20px !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(59, 130, 246, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  animation: alanxPwResetCardIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-pw-reset #main-body .primary-content .pw-reset-form-card.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.65), transparent);
  pointer-events: none;
  z-index: 2;
}

body.page-pw-reset #main-body .primary-content .pw-reset-form-card .card-body {
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding: 2rem 1.55rem !important;
}

@media (min-width: 576px) {
  body.page-pw-reset #main-body .primary-content .pw-reset-form-card .card-body {
    padding: 2.25rem 2.1rem !important;
  }
}

/* —— Hero —— */
body.page-pw-reset .pw-reset-hero {
  text-align: center;
}

body.page-pw-reset .pw-reset-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.26), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 4px 18px rgba(37, 99, 235, 0.18);
  animation: alanxPwResetBadgeGlow 3.5s ease-in-out infinite;
}

body.page-pw-reset .pw-reset-hero__badge i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.7rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2563eb, #0ea5e9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

body.page-pw-reset .pw-reset-hero__title {
  font-size: clamp(1.55rem, 4.2vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.16 !important;
  margin-bottom: 0.5rem !important;
  background: linear-gradient(120deg, #ffffff 0%, #e0f2fe 22%, #7dd3fc 45%, #38bdf8 65%, #2563eb 88%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 2px 20px rgba(37, 99, 235, 0.28));
  animation: alanxPwResetTitleShimmer 9s linear infinite;
}

body.page-pw-reset .pw-reset-hero__lead {
  font-size: clamp(0.9rem, 2.2vw, 1.02rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: rgba(203, 213, 225, 0.93) !important;
  letter-spacing: 0.01em;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

body.page-pw-reset .pw-reset-success-copy {
  color: rgba(203, 213, 225, 0.92) !important;
}

/* —— Alanlar (login-premium ile uyumlu) —— */
body.page-pw-reset .login-field-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(148, 163, 184, 0.95) !important;
}

body.page-pw-reset .login-field-control {
  height: 52px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
  color: #f1f5f9 !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease !important;
}

body.page-pw-reset .login-field-control::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

body.page-pw-reset .login-field-control:hover:not(:focus) {
  border-color: rgba(96, 165, 250, 0.4) !important;
}

body.page-pw-reset .login-field-control:focus {
  border-color: rgba(96, 165, 250, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28) !important;
  background: rgba(15, 23, 42, 0.9) !important;
}

/* Birleşik e-posta satırı */
body.page-pw-reset .pw-reset-email-group .pw-reset-input-addon {
  height: 52px !important;
  border-radius: 12px 0 0 12px !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
  border-right: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  color: #93c5fd !important;
}

body.page-pw-reset .pw-reset-email-group .pw-reset-email-input {
  height: 52px !important;
  border-radius: 0 12px 12px 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

body.page-pw-reset .pw-reset-email-group .pw-reset-email-input:focus {
  border-left-color: transparent !important;
}

/* —— Captcha —— */
body.page-pw-reset .pw-reset-captcha-wrap {
  padding: 1rem 1rem 1.1rem;
  background: rgba(10, 15, 28, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* —— Gönder / birincil CTA (login-submit-btn bu sayfada da) —— */
body.page-pw-reset .login-submit-btn {
  height: 54px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 130%) !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  border-radius: 14px !important;
  box-shadow:
    0 12px 36px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease !important;
}

body.page-pw-reset .login-submit-btn:hover,
body.page-pw-reset .login-submit-btn:focus {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow:
    0 16px 44px rgba(37, 99, 235, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  transform: translateY(-2px);
}

body.page-pw-reset .pw-reset-back-link {
  color: #93c5fd !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.page-pw-reset .pw-reset-back-link:hover,
body.page-pw-reset .pw-reset-back-link:focus {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

body.page-pw-reset .pw-reset-btn-secondary {
  height: 52px !important;
  border-radius: 12px !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(96, 165, 250, 0.28) !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}

body.page-pw-reset .pw-reset-btn-secondary:hover,
body.page-pw-reset .pw-reset-btn-secondary:focus {
  background: rgba(37, 99, 235, 0.18) !important;
  border-color: rgba(147, 197, 253, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* —— Başarı: e-posta gönderildi / talep alındı —— */
@keyframes alanxPwResetSuccessIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alanxPwResetSuccessPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 22px rgba(45, 212, 191, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.07) inset,
      0 12px 32px rgba(0, 0, 0, 0.35),
      0 0 32px rgba(45, 212, 191, 0.22);
  }
}

body.page-pw-reset .pw-reset-success-state {
  text-align: center;
  animation: alanxPwResetSuccessIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-pw-reset .pw-reset-success-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.3rem 1.25rem 1.4rem;
  border-radius: 14px;
  margin-bottom: 1.4rem;
  background: linear-gradient(
    165deg,
    rgba(15, 118, 110, 0.46) 0%,
    rgba(6, 78, 59, 0.58) 42%,
    rgba(6, 40, 42, 0.78) 100%
  );
  border: 1px solid rgba(45, 212, 191, 0.4);
  animation: alanxPwResetSuccessPulse 4s ease-in-out infinite;
}

body.page-pw-reset .pw-reset-success-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  font-size: 1.12rem;
  color: #fff;
  background: linear-gradient(145deg, #2dd4bf, #059669);
  border: 1px solid rgba(167, 243, 208, 0.42);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.38);
}

body.page-pw-reset .pw-reset-success-banner__title {
  margin: 0;
  font-size: clamp(1.02rem, 2.9vw, 1.15rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: #99f6e4 !important;
  text-shadow: 0 1px 18px rgba(45, 212, 191, 0.22);
}

body.page-pw-reset .pw-reset-success-state .pw-reset-success-copy {
  margin: 0;
  font-size: clamp(0.92rem, 2.1vw, 1.03rem);
  line-height: 1.62;
  font-weight: 400;
  color: rgba(241, 245, 249, 0.94) !important;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

body.page-pw-reset .pw-reset-success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 17rem);
  height: 52px;
  padding: 0 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: #fff !important;
  border-radius: 14px;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 130%) !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  box-shadow:
    0 12px 36px rgba(37, 99, 235, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

body.page-pw-reset .pw-reset-success-cta:hover,
body.page-pw-reset .pw-reset-success-cta:focus {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 16px 44px rgba(37, 99, 235, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  body.page-pw-reset .pw-reset-success-state,
  body.page-pw-reset .pw-reset-success-banner {
    animation: none !important;
  }

  body.page-pw-reset .pw-reset-success-state {
    opacity: 1;
    transform: none;
  }

  body.page-pw-reset .pw-reset-success-cta:hover,
  body.page-pw-reset .pw-reset-success-cta:focus {
    transform: none;
  }

  body.page-pw-reset #main-body .primary-content .pw-reset-form-card.card,
  body.page-pw-reset .pw-reset-hero__title,
  body.page-pw-reset .pw-reset-hero__badge {
    animation: none !important;
  }

  body.page-pw-reset #main-body .primary-content .pw-reset-form-card.card {
    opacity: 1;
    transform: none;
  }

  body.page-pw-reset .pw-reset-hero__title {
    filter: none;
  }

  body.page-pw-reset .login-submit-btn:hover,
  body.page-pw-reset .login-submit-btn:focus {
    transform: none;
  }

  body.page-pw-reset .pw-reset-page-shell__logo-link:hover .pw-reset-page-shell__logo,
  body.page-pw-reset .pw-reset-page-shell__logo-link:focus .pw-reset-page-shell__logo {
    transform: none;
  }
}
