/**
 * Müşteri kaydı — cam paneller, giriş sayfası ile uyumlu CTA
 * custom.css sonrası yüklenir (head.tpl)
 */

@keyframes alanxRegisterCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html.page-register-html {
  background-color: #030304;
}

body.page-register {
  background-color: #030304 !important;
}

/* —— Form kartları (cam) —— */
body.page-register #registration form .card.mb-4 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.68), rgba(15, 23, 42, 0.52)) !important;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(59, 130, 246, 0.07) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
  animation: alanxRegisterCardIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-register #registration form .card.mb-4::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.6), transparent);
  pointer-events: none;
  z-index: 2;
}

body.page-register #registration form .card.mb-4 .card-body {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

body.page-register #registration form .card .card-title {
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase !important;
  color: #e2e8f0 !important;
  margin-bottom: 1.2rem !important;
  padding-bottom: 0.7rem !important;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14) !important;
}

/* Sıralı giriş animasyonu gecikmesi */
body.page-register #registration form .card.mb-4:has(#personalInformation) {
  animation-delay: 0.04s;
}

body.page-register #registration #billingAddress.card {
  animation-delay: 0.1s;
}

body.page-register #registration #additionalInformation.card {
  animation-delay: 0.16s;
}

body.page-register #registration #containerNewUserSecurity .card.mb-4 {
  animation-delay: 0.2s;
}

body.page-register #registration form > .card.mb-4:last-of-type {
  animation-delay: 0.24s;
}

/* Şifre oluştur — outline CTA */
body.page-register #registration .generate-password {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border: 1px solid rgba(96, 165, 250, 0.45) !important;
  background: rgba(37, 99, 235, 0.12) !important;
  color: #93c5fd !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease !important;
}

body.page-register #registration .generate-password:hover,
body.page-register #registration .generate-password:focus {
  background: rgba(37, 99, 235, 0.22) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Son blok — cam panel + captcha */
body.page-register #registration .theme-register-final {
  position: relative;
  isolation: isolate;
  max-width: 36rem !important;
  margin: 1.25rem auto 2rem !important;
  padding: 1.35rem 1.35rem 1.65rem !important;
  background: linear-gradient(165deg, rgba(16, 24, 40, 0.72), rgba(10, 15, 28, 0.58)) !important;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  gap: 1.25rem !important;
  animation: alanxRegisterCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

body.page-register #registration .theme-register-final::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.55), transparent);
  pointer-events: none;
  z-index: 1;
}

body.page-register #registration .theme-register-final > * {
  position: relative;
  z-index: 2;
}

body.page-register #registration .theme-register-final__captcha {
  width: 100%;
  padding: 1rem 1rem 1.1rem;
  background: rgba(10, 15, 28, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Kayıt Ol — gradient CTA (giriş ile uyumlu) */
body.page-register #registration .theme-register-final__submit .theme-btn {
  min-height: 54px !important;
  min-width: min(100%, 22rem) !important;
  width: 100% !important;
  max-width: 22rem !important;
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  border-radius: 14px !important;
  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.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-register #registration .theme-register-final__submit .theme-btn:hover,
body.page-register #registration .theme-register-final__submit .theme-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.1) inset !important;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  body.page-register #registration form .card.mb-4,
  body.page-register #registration .theme-register-final {
    animation: none !important;
  }

  body.page-register #registration form .card.mb-4,
  body.page-register #registration .theme-register-final {
    opacity: 1;
    transform: none;
  }

  body.page-register #registration .theme-register-final__submit .theme-btn:hover,
  body.page-register #registration .theme-register-final__submit .theme-btn:focus {
    transform: none;
  }
}

/* —— Kayıt: breadcrumb (görüntüdeki gibi net, koyu şerit) —— */
body.page-register .master-breadcrumb .breadcrumb {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

body.page-register .master-breadcrumb .breadcrumb-item a {
  color: rgba(203, 213, 225, 0.88) !important;
  font-weight: 500;
  transition: color 0.15s ease;
}

body.page-register .master-breadcrumb .breadcrumb-item a:hover,
body.page-register .master-breadcrumb .breadcrumb-item a:focus {
  color: #fff !important;
}

body.page-register .master-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
}

/* —— “Daha önce kayıt…” yan kartı — ana form ile aynı cam + mavi daire ikonlar —— */
body.page-register #main-body:has(#registration) .sidebar .card-sidebar,
body.page-register #main-body:has(#registration) .sidebar .mc-promo-login {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.72), rgba(15, 23, 42, 0.52)) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(59, 130, 246, 0.07) inset,
    0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  animation: alanxRegisterCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar::before,
body.page-register #main-body:has(#registration) .sidebar .mc-promo-login::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-register #main-body:has(#registration) .sidebar .card-sidebar .card-header,
body.page-register #main-body:has(#registration) .mc-promo-login .panel-heading {
  background: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar .card-title {
  font-size: clamp(0.82rem, 0.65rem + 0.65vw, 0.95rem) !important;
  letter-spacing: -0.015em !important;
  align-items: center !important;
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar .card-sidebar-title-leading {
  white-space: normal !important;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 0.65rem !important;
}

/* Başlıktaki kullanıcı ikonu — gönderideki mavi daire */
body.page-register #main-body:has(#registration) .sidebar .card-sidebar .card-sidebar-title-leading > i:first-of-type {
  width: 2.125rem !important;
  height: 2.125rem !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 52%, #0ea5e9 115%) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  color: #fff !important;
  font-size: 0.8125rem !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

body.page-register #main-body:has(#registration) .mc-promo-login .panel-heading h3 > i:first-child {
  width: 2.125rem !important;
  height: 2.125rem !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 52%, #0ea5e9 115%) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Daralt oku */
body.page-register #main-body:has(#registration) .sidebar .card-sidebar .card-minimise {
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(96, 165, 250, 0.22) !important;
  color: #93c5fd !important;
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar .card-body {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
  color: rgba(226, 232, 240, 0.82) !important;
}

/* Giriş / şifremi unuttum satırları — daire ikon zemin */
body.page-register #main-body:has(#registration) .sidebar .card-sidebar .sidebar-menu-item-icon-wrapper {
  width: 2.125rem !important;
  height: 2.125rem !important;
  border-radius: 50% !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 52%, #0ea5e9 115%) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar .sidebar-menu-item-icon {
  color: #fff !important;
}

body.page-register #main-body:has(#registration) .mc-promo-login a.list-group-item-action > i:first-child {
  border-radius: 50% !important;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 52%, #0ea5e9 115%) !important;
  border: 1px solid rgba(147, 197, 253, 0.42) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

body.page-register #main-body:has(#registration) .sidebar .card-sidebar a.list-group-item-action:hover,
body.page-register #main-body:has(#registration) .sidebar .card-sidebar a.list-group-item-action:focus,
body.page-register #main-body:has(#registration) .mc-promo-login a.list-group-item-action:hover,
body.page-register #main-body:has(#registration) .mc-promo-login a.list-group-item-action:focus {
  background: rgba(37, 99, 235, 0.14) !important;
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.95);
}

/* Mobil “select” yedek kartı */
body.page-register #main-body:has(#registration) .sidebar .card.d-block.d-md-none {
  border-radius: 16px !important;
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.65), rgba(15, 23, 42, 0.48)) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

body.page-register #main-body:has(#registration) .sidebar .card.d-block.d-md-none .card-header {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.page-register #main-body:has(#registration) .sidebar .card-sidebar,
  body.page-register #main-body:has(#registration) .sidebar .mc-promo-login {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
