/* Auth clean layout (login/register) - scoped, non-invasive */

.oe-auth-clean {
  width: 100%;
  margin: 0;
}

/* Break out of theme `.oe-shell` max-width on auth pages only. */
.oe-shell .oe-auth-clean {
  width: calc(100vw - 32px);
  margin-left: calc(50% - 50vw + 16px);
  margin-right: calc(50% - 50vw + 16px);
}

.oe-auth-clean__layout {
  width: calc(100% - 32px);
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(720px, 860px) minmax(220px, 300px);
  gap: 18px;
  align-items: start;
}

.oe-auth-clean__ad {
  width: 100%;
  min-width: 0;
}

.oe-auth-clean__main {
  min-width: 0;
}

/* Yalnızca ana içerik: yan reklam yoksa tek sütun, form ortalanır. */
.oe-auth-clean__layout.oe-auth-clean__layout--solo {
  grid-template-columns: 1fr;
  max-width: min(760px, 100%);
  justify-items: center;
}

.oe-auth-clean__layout.oe-auth-clean__layout--solo .oe-auth-clean__main {
  width: 100%;
  max-width: 720px;
}

.oe-auth-clean__card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.oe-auth-clean__title {
  margin: 0 0 8px 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.oe-auth-clean__text {
  margin: 0 0 16px 0;
  color: rgba(15, 23, 42, 0.64);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.oe-auth-clean__form {
  margin-top: 10px;
}

.oe-auth-clean__field {
  margin-bottom: 14px;
}

.oe-auth-clean__actions {
  margin-top: 10px;
}

.oe-auth-clean__switch {
  margin: 14px 0 0 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 14px;
  font-weight: 650;
}

.oe-auth-clean__switch a {
  font-weight: 800;
}

/* ------------------------------------------------------------------
   Giriş (.oe-login-shell) ve kayıt (.oe-register-shell): yan kolon + slot yüksekliği
   ------------------------------------------------------------------ */

.oe-login-shell.oe-auth-clean,
.oe-register-shell.oe-auth-clean {
  padding-top: clamp(10px, 1.2vw, 20px);
  box-sizing: border-box;
}

@media (max-width: 1300px) {
  body .oe-login-shell .oe-login-layout,
  body .oe-register-shell .oe-register-layout {
    grid-template-columns: 1fr;
    max-width: min(920px, calc(100vw - 32px));
    width: 100%;
    gap: 20px;
    min-width: 0;
    box-sizing: border-box;
  }

  body .oe-login-shell .oe-login-side-ad,
  body .oe-login-shell .auth-side-ad,
  body .oe-register-shell .oe-register-side-ad,
  body .oe-register-shell .auth-side-ad {
    display: none !important;
  }

  body .oe-login-shell .oe-auth-clean__main,
  body .oe-register-shell .oe-auth-clean__main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1301px) {
  body .oe-login-shell .oe-login-layout.oe-auth-clean__layout--solo,
  body .oe-register-shell .oe-register-layout.oe-auth-clean__layout--solo {
    grid-template-columns: 1fr;
    max-width: min(760px, 100%);
    justify-items: center;
  }

  body .oe-login-shell .oe-login-layout,
  body .oe-register-shell .oe-register-layout {
    max-width: 1500px;
    width: calc(100% - 32px);
    grid-template-columns: 300px minmax(520px, 760px) 300px;
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
  }

  /* Yan kolon: slot için taşıyıcı */
  body .oe-login-shell .oe-login-side-ad,
  body .oe-login-shell .auth-side-ad,
  body .oe-register-shell .oe-register-side-ad,
  body .oe-register-shell .auth-side-ad {
    width: 300px;
    min-width: 0;
    max-width: 300px;
    min-height: 560px;
    height: 560px;
    max-height: 600px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    justify-self: center;
  }

  /*
   * DOM: aside > div.oe-tp-adSlot.oe-tp-adSlot--rail.oe-ad-slot.oe-ad-slot--placeholder
   * Yükseklik doğrudan slot üzerinde (teacher-panel .oe-public-side-ad kuralları burada yok).
   */
  body .oe-login-shell .oe-login-side-ad > .oe-ad-slot,
  body .oe-login-shell .oe-login-side-ad > .oe-tp-adSlot,
  body .oe-login-shell .auth-side-ad > .oe-ad-slot,
  body .oe-login-shell .auth-side-ad > .oe-tp-adSlot,
  body .oe-register-shell .oe-register-side-ad > .oe-ad-slot,
  body .oe-register-shell .oe-register-side-ad > .oe-tp-adSlot,
  body .oe-register-shell .auth-side-ad > .oe-ad-slot,
  body .oe-register-shell .auth-side-ad > .oe-tp-adSlot {
    width: 100% !important;
    max-width: 280px;
    min-height: 560px !important;
    height: 560px !important;
    max-height: 600px !important;
    flex: 1 1 auto;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  body .oe-login-shell .oe-login-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder),
  body .oe-login-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder),
  body .oe-register-shell .oe-register-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder),
  body .oe-register-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) {
    padding: 0 !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    height: 100% !important;
    min-height: 560px !important;
    max-height: 600px !important;
  }

  body .oe-login-shell .oe-login-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__media,
  body .oe-login-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__media,
  body .oe-register-shell .oe-register-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__media,
  body .oe-register-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__media,
  body .oe-login-shell .oe-login-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__link.oe-ad-slot__media,
  body .oe-login-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__link.oe-ad-slot__media,
  body .oe-register-shell .oe-register-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__link.oe-ad-slot__media,
  body .oe-register-shell .auth-side-ad > .oe-ad-slot.oe-ad-slot--image:not(.oe-ad-slot--placeholder) .oe-ad-slot__link.oe-ad-slot__media {
    height: 100%;
    min-height: 560px;
    max-height: 600px;
  }
}

@media (max-width: 980px) {
  .oe-shell .oe-auth-clean {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .oe-auth-clean__layout {
    width: calc(100% - 24px);
    padding-left: 12px;
    padding-right: 12px;
    grid-template-columns: 1fr;
  }
  .oe-auth-clean__ad--left {
    order: 2;
  }
  .oe-auth-clean__ad--right {
    order: 3;
  }
  .oe-auth-clean__main {
    order: 1;
  }
}

@media (max-width: 520px) {
  .oe-auth-clean__card {
    padding: 18px 16px 16px;
  }
  .oe-auth-clean__title {
    font-size: 22px;
  }
}

