/* Codeix LMS — modern login (sadece login sayfalari) */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

body.path-login {
  --cx-ink: #0f1724;
  --cx-muted: #5b6578;
  --cx-accent: #2563eb;
  --cx-accent-2: #0ea5a4;
  --cx-surface: rgba(255, 255, 255, 0.82);
  --cx-border: rgba(15, 23, 36, 0.08);
  --cx-shadow: 0 24px 60px rgba(15, 23, 36, 0.12);
  font-family: "Manrope", sans-serif;
  color: var(--cx-ink);
}

body.path-login #page-login-index,
body.path-login #page-login-signup,
body.path-login #page-login-forgot_password,
body.path-login.pagelayout-login,
body.path-login.pagelayout-admin,
body.path-login.pagelayout-base {
  background: transparent !important;
}

body.path-login #page-login {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

/* Atmosphere */
body.path-login #page-login::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(900px 600px at 88% 12%, rgba(14, 165, 164, 0.18), transparent 50%),
    radial-gradient(800px 500px at 70% 85%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(160deg, #eef3fb 0%, #f7f8fc 45%, #e8f4f3 100%);
  animation: cx-bg-shift 14s ease-in-out infinite alternate;
}

body.path-login #page-login::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 23, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 36, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
}

@keyframes cx-bg-shift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(0, -1.5%, 0); }
}

/* Floating orbs via login wrapper decoration */
body.path-login .codeix-login-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: cx-orb 10s ease-in-out infinite alternate;
}

body.path-login .codeix-login-orb--1 {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: 8%;
  background: rgba(37, 99, 235, 0.28);
}

body.path-login .codeix-login-orb--2 {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 18%;
  background: rgba(14, 165, 164, 0.25);
  animation-delay: -3s;
}

@keyframes cx-orb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(12px, -18px, 0); }
}

body.path-login .login-wrapper,
body.path-login #region-main {
  position: relative;
  z-index: 1;
}

/* Form panel */
body.path-login .rui-login-box,
body.path-login .rui-login-layout-simple .rui-login-box,
body.path-login .login-container {
  background: transparent !important;
  box-shadow: none !important;
}

body.path-login .rui-login-content,
body.path-login .rui-login-box {
  width: min(420px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

body.path-login .rui-login-box {
  padding: 2.25rem 2rem !important;
  border-radius: 28px !important;
  background: var(--cx-surface) !important;
  border: 1px solid var(--cx-border);
  box-shadow: var(--cx-shadow) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: cx-panel-in 0.55s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

@keyframes cx-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Brand — stacked (tema flex; ::after yanına kaçmasın) */
body.path-login .rui-loginpage-intro-logo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem;
  margin-bottom: 1.85rem !important;
  text-align: center;
}

body.path-login .rui-loginpage-intro-logo a {
  display: block;
  width: 100%;
  text-decoration: none !important;
}

body.path-login .rui-loginpage-intro-logo h1,
body.path-login .rui-login-logo-name {
  font-family: "Sora", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em;
  color: var(--cx-ink) !important;
  font-size: clamp(1.9rem, 3.2vw, 2.35rem) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  text-align: center;
  white-space: nowrap;
}

body.path-login .rui-loginpage-intro-logo::after {
  content: "Öğrenme platformuna hoş geldin";
  display: block;
  max-width: 16rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cx-muted);
  letter-spacing: 0.01em;
}

/* Inputs */
body.path-login .form-control--username,
body.path-login .form-control--password,
body.path-login .rui-login-form .form-control {
  height: 52px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 36, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: none !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 0.98rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.path-login .form-control--username:focus,
body.path-login .form-control--password:focus,
body.path-login .rui-login-form .form-control:focus {
  border-color: rgba(37, 99, 235, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

body.path-login .rui-login-form .form-group {
  margin-bottom: 0.85rem !important;
}

/* CTA */
body.path-login .rui-login-form .btn-primary,
body.path-login #loginbtn,
body.path-login button[type="submit"].btn-primary {
  width: 100%;
  height: 52px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--cx-accent) 0%, #1d4ed8 55%, var(--cx-accent-2) 140%) !important;
  font-family: "Sora", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.path-login .rui-login-form .btn-primary:hover,
body.path-login #loginbtn:hover,
body.path-login button[type="submit"].btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

/* Brand icons under Login CTA — footer ikon kutuları */
body.path-login .codeix-login-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

body.path-login .codeix-login-brands > a {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.15s ease;
}

body.path-login .codeix-login-brands > a:hover {
  transform: translateY(-2px);
}

body.path-login .codeix-login-brands .codeix-footer__picon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
}

body.path-login .codeix-login-brands .codeix-footer__picon img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

/* Açık login zemininde beyaz Codeix markası görünsün */
body.path-login .codeix-login-brands .codeix-footer__picon--purple {
  background: #7c3aed;
}

body.path-login .codeix-login-brands .codeix-footer__picon--red {
  background: rgba(244, 63, 94, 0.16);
}

body.path-login .codeix-login-brands .codeix-footer__picon--green {
  background: rgba(34, 197, 94, 0.14);
}

body.path-login .codeix-login-brands .codeix-footer__picon--blue {
  background: rgba(59, 130, 246, 0.16);
}

body.path-login .codeix-login-brands .codeix-footer__picon--blue img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
  align-self: center;
}

body.path-login .rui-login-forgot-btn,
body.path-login .rui-rememberusername-text,
body.path-login a[href*="forgot_password"] {
  color: var(--cx-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

body.path-login .rui-login-forgot-btn:hover,
body.path-login a[href*="forgot_password"]:hover {
  color: var(--cx-accent) !important;
}

/* Lang switcher */
body.path-login .rui-login-lang-wrapper {
  z-index: 5;
}

body.path-login .rui-lang-btn {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid var(--cx-border) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(15, 23, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.path-login .rui-lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 36, 0.1);
}

body.path-login .rui-lang-btn-text {
  font-family: "Manrope", sans-serif !important;
  font-weight: 600;
}

@media (max-width: 575.98px) {
  body.path-login .rui-login-box {
    padding: 1.6rem 1.25rem !important;
    border-radius: 22px !important;
  }

  body.path-login .rui-loginpage-intro-logo::after {
    font-size: 0.88rem;
  }
}
