/* ==========================================================================
   İnsya ERP — Kök kapı (/): login sol görsel paneli, tam çerçeve
   erp-login.css üzerindeki .login-left + sinematik stilleri kullanır.
   ========================================================================== */

html.eg-html,
body.eg-body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

html {
  background-image:
    radial-gradient(rgba(43, 77, 48, 0.12) 0.75px, transparent 0.8px),
    radial-gradient(ellipse at 60% 0%, #f3edce, #becfbf 65%) !important;
  background-size: 14px 14px, auto !important;
  background-attachment: fixed, fixed !important;
  background-color: #becfbf !important;
}

body.eg-body {
  display: grid !important;
  place-items: center;
  padding: 24px 16px !important;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: #23392d;
  -webkit-font-smoothing: antialiased;
  background: transparent !important;
}

body.eg-body::before,
body.eg-body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  box-shadow: inset -25px -30px 45px rgba(101, 130, 99, 0.2);
}

body.eg-body::before {
  width: 80vw;
  height: 80vw;
  left: -25vw;
  top: 7%;
  background: linear-gradient(135deg, rgba(229, 239, 202, 0.75), rgba(145, 177, 155, 0.55));
  transform: rotate(-25deg);
}

body.eg-body::after {
  width: 70vw;
  height: 45vw;
  right: -18vw;
  top: 22%;
  background: linear-gradient(145deg, rgba(117, 153, 144, 0.65), rgba(236, 237, 189, 0.55));
  transform: rotate(-45deg);
}

.eg-gate.login-left {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  min-height: min(70vh, 560px);
  margin: 0;
  padding: 40px 36px 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 24px 60px rgba(37, 67, 50, 0.28),
    0 4px 14px rgba(37, 67, 50, 0.12),
    inset 0 0 0 2000px rgba(35, 57, 45, 0.62);
  animation: eg-arrive 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes eg-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eg-gate .content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(min(70vh, 560px) - 88px);
}

.eg-gate .brand-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.1rem);
  font-weight: 300;
}

.eg-gate .brand-subtitle {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 400;
}

.eg-gate-actions {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  animation: eg-fade 1s ease 2.6s both;
}

.eg-gate .login-brand {
  position: static;
  margin: 0;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(241, 246, 230, 0.7);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}

.eg-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 8px;
  background: rgba(241, 246, 230, 0.94);
  color: #1e3a28 !important;
  text-decoration: none;
  font: 600 11px/1 "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 0 rgba(12, 21, 16, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.eg-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}

.eg-hint {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: rgba(241, 246, 230, 0.55);
  animation: eg-fade 1s ease 2.9s both;
}

.eg-meta {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(241, 246, 230, 0.62);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  animation: eg-fade 1s ease 2.85s both;
}

.eg-meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.eg-meta span {
  opacity: 0.7;
  text-transform: uppercase;
  font-size: 0.65rem;
}

.eg-meta b {
  font-weight: 600;
  color: rgba(241, 246, 230, 0.92);
}

.eg-gate.login-left::after {
  content: attr(data-logincontent);
  font-size: 8px;
  position: absolute;
  bottom: 18px;
  right: 22px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 1px;
  animation: eg-fade 1.2s ease 3.1s both;
}

@keyframes eg-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .eg-gate.login-left {
    min-height: 72vh;
    padding: 28px 22px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-gate.login-left,
  .eg-gate-actions,
  .eg-hint,
  .eg-meta,
  .eg-gate.login-left::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
