/* MC Scout Pro passwordless auth — yalnızca .mc-auth-* kapsamı. */
.mc-auth-overlay [hidden],
.mc-auth-shell [hidden] { display: none !important; }

.mc-auth-shell {
  --mc-auth-ink: #eaf3ff;
  --mc-auth-muted: #9eb0c6;
  --mc-auth-line: rgba(130, 166, 205, .22);
  --mc-auth-panel: rgba(7, 22, 39, .97);
  --mc-auth-field: rgba(13, 34, 56, .84);
  --mc-auth-brand: #45dfba;
  --mc-auth-blue: #62a8ff;
  isolation: isolate;
  overflow: hidden !important;
}

#authModal .mc-auth-shell.modal {
  display: grid !important;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr) !important;
  width: min(920px, calc(100vw - 40px)) !important;
  max-width: 920px !important;
  max-height: min(790px, calc(100dvh - 40px)) !important;
  padding: 0 !important;
  border: 1px solid rgba(135, 181, 220, .24) !important;
  border-radius: 30px !important;
  background: #071727 !important;
  box-shadow: 0 32px 100px rgba(2, 11, 24, .44) !important;
}

#membershipDrawer .membership-auth-layout.mc-auth-shell {
  display: grid !important;
  grid-template-columns: minmax(250px, .88fr) minmax(330px, 1.12fr) !important;
  width: min(860px, 100%) !important;
  max-width: 860px !important;
  min-height: 530px;
  margin: 0 auto;
  border: 1px solid var(--mc-auth-line);
  border-radius: 28px;
  background: #071727;
  box-shadow: 0 24px 70px rgba(1, 10, 24, .28);
}

.mc-auth-visual,
#membershipDrawer .mc-auth-shell .membership-auth-art {
  position: relative !important;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 14%, rgba(69, 223, 186, .24), transparent 30%),
    radial-gradient(circle at 83% 72%, rgba(94, 117, 255, .28), transparent 34%),
    linear-gradient(145deg, #07192c 0%, #08354a 52%, #18265b 100%) !important;
  transition: transform 620ms cubic-bezier(.22, .78, .24, 1), opacity 620ms cubic-bezier(.22, .78, .24, 1);
  animation: mc-auth-panel-in 620ms cubic-bezier(.22, .78, .24, 1) both;
}

.mc-auth-visual::before,
#membershipDrawer .mc-auth-shell .membership-auth-art::before {
  content: '' !important;
  position: absolute !important;
  inset: -30% !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle, rgba(113, 243, 214, .76) 0 2px, transparent 3px) 18% 26% / 96px 96px,
    radial-gradient(circle, rgba(139, 180, 255, .58) 0 1.5px, transparent 2.5px) 68% 72% / 128px 128px !important;
  opacity: .42 !important;
  transform: rotate(-8deg) !important;
  filter: none !important;
  animation: mc-auth-stars 18s linear infinite !important;
}

.mc-auth-visual::after,
#membershipDrawer .mc-auth-shell .membership-auth-art::after {
  content: '' !important;
  position: absolute !important;
  inset: auto -16% -22% auto !important;
  width: 340px !important;
  height: 340px !important;
  border: 1px solid rgba(108, 225, 205, .24) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(55, 211, 177, .12), transparent 62%) !important;
  box-shadow: 0 0 0 42px rgba(89, 139, 238, .06), 0 0 0 88px rgba(89, 139, 238, .035) !important;
  transform: none !important;
  animation: mc-auth-orbit 9s ease-in-out infinite alternate !important;
}

.mc-auth-panel,
#membershipDrawer .mc-auth-shell .membership-auth-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(28px, 4vw, 46px) !important;
  color: var(--mc-auth-ink) !important;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .025), transparent 35%),
    var(--mc-auth-panel) !important;
  transition: transform 620ms cubic-bezier(.22, .78, .24, 1), opacity 620ms cubic-bezier(.22, .78, .24, 1);
  animation: mc-auth-form-in 620ms cubic-bezier(.22, .78, .24, 1) both;
}

.mc-auth-shell[data-auth-mode='register'] .mc-auth-visual,
#membershipDrawer .mc-auth-shell[data-auth-mode='register'] .membership-auth-art { order: 2; }
.mc-auth-shell[data-auth-mode='register'] .mc-auth-panel { order: 1; }

#authModal .mc-auth-panel > h3,
#membershipDrawer .mc-auth-panel .membership-hero h3 {
  margin: 0 0 7px !important;
  color: var(--mc-auth-ink) !important;
  font-size: clamp(1.55rem, 3vw, 2.05rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.04em !important;
}

#authModal .mc-auth-panel .msub,
#membershipDrawer .mc-auth-panel .membership-hero p {
  margin: 0 0 22px !important;
  color: var(--mc-auth-muted) !important;
  font-size: .88rem !important;
  line-height: 1.55 !important;
}

#membershipDrawer .mc-auth-panel .membership-hero {
  padding: 0 !important;
  text-align: left;
}

#membershipDrawer .mc-auth-panel .membership-hero-icon,
.mc-auth-mail {
  display: grid;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  margin: 0 0 16px !important;
  border: 1px solid rgba(69, 223, 186, .34) !important;
  border-radius: 15px !important;
  color: var(--mc-auth-brand) !important;
  background: rgba(69, 223, 186, .1) !important;
  box-shadow: 0 10px 28px rgba(11, 194, 151, .12) !important;
  font-size: 1.05rem !important;
}

.mc-auth-fields { display: grid; gap: 12px; }
.mc-auth-fields .field,
#membershipDrawer .mc-auth-panel .membership-field { min-width: 0; }
.mc-auth-fields .field label,
#membershipDrawer .mc-auth-panel .membership-field > span:first-child,
.mc-otp-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #bed0e4 !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .05em;
}

#authModal .mc-auth-fields input,
#membershipDrawer .mc-auth-panel .membership-field input:not(.mc-otp-input) {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  width: 100% !important;
  max-width: 100%;
  min-width: 0 !important;
  box-sizing: border-box;
  min-height: 49px !important;
  padding: 0 15px !important;
  border: 1px solid var(--mc-auth-line) !important;
  border-radius: 14px !important;
  outline: none !important;
  color: var(--mc-auth-ink) !important;
  background: var(--mc-auth-field) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025) !important;
  font: 600 .9rem/1 inherit !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

#membershipDrawer .mc-auth-panel .membership-field input[type='date'] {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#authModal .mc-auth-fields input:focus,
#membershipDrawer .mc-auth-panel .membership-field input:not(.mc-otp-input):focus {
  border-color: rgba(69, 223, 186, .72) !important;
  box-shadow: 0 0 0 4px rgba(69, 223, 186, .11) !important;
  background: rgba(14, 40, 64, .96) !important;
}

#authModal .mc-auth-fields input::placeholder,
#membershipDrawer .mc-auth-panel .membership-field input::placeholder { color: #71869c !important; opacity: 1; }

.mc-auth-shell .kvkk-check,
#membershipDrawer .mc-auth-shell .consent-check {
  margin-top: 3px !important;
  color: var(--mc-auth-muted) !important;
  font-size: .72rem !important;
  line-height: 1.45 !important;
}

.mc-auth-shell .kvkk-text,
#membershipDrawer .mc-auth-shell .kvkk-text-inline {
  max-height: 92px;
  overflow: auto;
  border-color: var(--mc-auth-line) !important;
  color: var(--mc-auth-muted) !important;
  background: rgba(10, 30, 50, .86) !important;
  font-size: .69rem !important;
}

.mc-auth-submit,
#membershipDrawer .mc-auth-panel .membership-submit {
  width: 100% !important;
  min-height: 49px !important;
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #03261e !important;
  background: linear-gradient(115deg, #65e7c5, #27d6af 50%, #55bce0) !important;
  box-shadow: 0 14px 32px rgba(34, 208, 170, .19) !important;
  font-size: .89rem !important;
  font-weight: 900 !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease !important;
}

.mc-auth-submit:hover,
#membershipDrawer .mc-auth-panel .membership-submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.mc-auth-submit:disabled,
#membershipDrawer .mc-auth-panel .membership-submit:disabled { cursor: wait; opacity: .62; transform: none; }

.mc-auth-shell .switch,
#membershipDrawer .mc-auth-panel .membership-switch {
  margin: 14px 0 0 !important;
  color: var(--mc-auth-muted) !important;
  text-align: center;
  font-size: .76rem !important;
}
.mc-auth-shell .switch button,
.mc-auth-shell .mc-otp-actions button,
#membershipDrawer .mc-auth-panel .link-btn {
  border: 0;
  padding: 2px;
  color: var(--mc-auth-brand) !important;
  background: transparent;
  font: inherit;
  font-weight: 800 !important;
  cursor: pointer;
}

.mc-auth-security {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 17px 0 0 !important;
  color: #8297ac !important;
  font-size: .67rem !important;
  line-height: 1.45 !important;
}
.mc-auth-security > span { color: var(--mc-auth-brand); font-weight: 900; }

.mc-auth-otp-stage { text-align: center; }
.mc-auth-otp-stage .mc-auth-mail { margin: 0 auto 13px !important; }
.mc-auth-otp-stage > p { max-width: 38ch; margin: 0 auto 20px; color: var(--mc-auth-muted); font-size: .83rem; line-height: 1.5; }
.mc-auth-otp-stage > p strong,
#membershipDrawer .mc-auth-shell-otp .membership-hero strong { color: var(--mc-auth-ink); overflow-wrap: anywhere; }

.mc-otp-field { position: relative; display: block; min-width: 0; }
.mc-otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(5px, 1.4vw, 9px);
  width: 100%;
  margin-top: 7px;
}
.mc-otp-cells i {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1 / 1.08;
  border: 1px solid var(--mc-auth-line);
  border-radius: 13px;
  color: var(--mc-auth-ink);
  background: var(--mc-auth-field);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  font-style: normal;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.mc-otp-cells i.is-filled { border-color: rgba(69, 223, 186, .52); background: rgba(21, 69, 78, .78); }
.mc-otp-cells i.is-active { border-color: var(--mc-auth-brand); box-shadow: 0 0 0 3px rgba(69, 223, 186, .11); transform: translateY(-1px); }
.mc-otp-input {
  position: absolute !important;
  inset: 27px 0 0 !important;
  width: 100% !important;
  height: calc(100% - 27px) !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: .01 !important;
  color: transparent !important;
  background: transparent !important;
  caret-color: transparent !important;
}
.mc-otp-input:focus { outline: none !important; box-shadow: none !important; }
.mc-otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  font-size: .72rem;
}
.mc-otp-actions button:disabled { color: #718399 !important; cursor: not-allowed; }
.mc-otp-form { gap: 13px !important; }

.mc-auth-shell .msg,
#membershipDrawer .mc-auth-shell .membership-status {
  min-height: 19px;
  margin: 4px 0 0 !important;
  font-size: .73rem !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
}

@keyframes mc-auth-panel-in {
  from { opacity: .35; transform: translate3d(-20px, 0, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes mc-auth-form-in {
  from { opacity: .3; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes mc-auth-stars {
  from { background-position: 18% 26%, 68% 72%; }
  to { background-position: calc(18% + 96px) calc(26% + 96px), calc(68% - 128px) calc(72% + 128px); }
}
@keyframes mc-auth-orbit {
  from { transform: translate3d(-5px, 3px, 0) scale(.96); opacity: .62; }
  to { transform: translate3d(8px, -9px, 0) scale(1.04); opacity: 1; }
}

:root[data-theme='light'] #membershipDrawer .mc-auth-shell {
  --mc-auth-ink: #10243f;
  --mc-auth-muted: #5f748c;
  --mc-auth-line: rgba(83, 126, 168, .2);
  --mc-auth-panel: rgba(248, 252, 255, .98);
  --mc-auth-field: rgba(238, 246, 252, .94);
  background: #f8fcff;
  box-shadow: 0 24px 70px rgba(28, 58, 91, .16);
}
:root[data-theme='light'] #membershipDrawer .mc-auth-panel {
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(240,248,255,.98)) !important;
}
:root[data-theme='light'] #membershipDrawer .mc-auth-panel .membership-field input:not(.mc-otp-input):focus {
  background: #fff !important;
}

@media (max-width: 700px) {
  #authModal .mc-auth-shell.modal,
  #membershipDrawer .membership-auth-layout.mc-auth-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100%, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 18px) !important;
    min-height: 0;
    overflow: auto !important;
    border-radius: 23px !important;
  }
  #authModal .mc-auth-shell.modal { margin: 9px auto !important; }
  .mc-auth-visual,
  #membershipDrawer .mc-auth-shell .membership-auth-art,
  .mc-auth-shell[data-auth-mode='register'] .mc-auth-visual,
  #membershipDrawer .mc-auth-shell[data-auth-mode='register'] .membership-auth-art {
    order: 1 !important;
    min-height: 150px !important;
    padding: 68px 20px 18px !important;
  }
  .mc-auth-panel,
  #membershipDrawer .mc-auth-shell .membership-auth-panel,
  .mc-auth-shell[data-auth-mode='register'] .mc-auth-panel {
    order: 2 !important;
    padding: 24px 19px calc(24px + env(safe-area-inset-bottom)) !important;
  }
  .mc-auth-shell-otp .mc-auth-visual,
  #membershipDrawer .mc-auth-shell-otp .membership-auth-art { min-height: 126px !important; }
  .mc-auth-visual-copy h3,
  #membershipDrawer .mc-auth-shell .membership-auth-copy h3 { max-width: 18ch !important; font-size: 1.35rem !important; }
  .mc-auth-visual-copy p,
  #membershipDrawer .mc-auth-shell .membership-auth-copy p { display: none; }
  .mc-auth-visual-points,
  #membershipDrawer .mc-auth-shell .membership-auth-points { margin-top: 9px !important; }
  .mc-auth-fields { gap: 10px; }
  .mc-otp-cells { gap: 5px; }
  .mc-otp-cells i { border-radius: 10px; }
}

@media (max-width: 390px) {
  .mc-auth-panel,
  #membershipDrawer .mc-auth-shell .membership-auth-panel { padding-inline: 15px !important; }
  .mc-auth-visual,
  #membershipDrawer .mc-auth-shell .membership-auth-art { padding-inline: 17px !important; }
  .mc-otp-cells i { border-radius: 9px; font-size: 1rem; }
  .mc-otp-actions { align-items: stretch; flex-direction: column; gap: 7px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-auth-shell *,
  .mc-auth-shell *::before,
  .mc-auth-shell *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
