/* Paylaşılan auth sayfa kabuğu — üye girişi & online üyelik */

:root {
  --login-radius-sm: 6px;
  --login-radius-md: 8px;
  --auth-bg: #f7faf9;
  --auth-text: #1f3330;
  --auth-muted: #5f7571;
  --auth-primary: #41807a;
  --auth-primary-dark: #386d68;
}

html,
body.didi-auth-page {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-shell,
.auth-shell {
  display: flex;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  background: var(--auth-bg);
  overflow: hidden;
}

.login-form-panel,
.auth-shell__main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  overflow: hidden;
}

.auth-shell__inner {
  width: 100%;
  max-width: min(720px, 100%);
  min-width: 0;
  box-sizing: border-box;
}

.login-form-panel__logo img,
.auth-shell__logo img {
  display: block;
  max-width: 168px;
  height: auto;
}

.auth-shell__logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.auth-shell__header {
  margin-bottom: 1.5rem;
}

.auth-shell__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-primary);
}

.auth-shell__title {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--auth-text);
}

.auth-shell__lead {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--auth-muted);
}

.auth-shell__meta {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--auth-muted);
}

.auth-shell__meta a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-shell__meta a:hover {
  text-decoration: underline;
}

.login-form-panel__home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  border-radius: var(--login-radius-sm);
  border: 1px solid rgba(65, 128, 122, 0.18);
  background: rgba(65, 128, 122, 0.06);
  color: var(--auth-text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-form-panel__home:hover {
  border-color: rgba(65, 128, 122, 0.35);
  background: rgba(65, 128, 122, 0.12);
  color: var(--auth-primary);
}

.login-brand-panel {
  position: relative;
  display: none;
  flex: 1 1 42%;
  max-width: 50%;
  overflow: hidden;
  padding: 1rem;
}

.login-brand-panel__mesh {
  position: absolute;
  inset: 1rem;
  overflow: hidden;
  border-radius: var(--login-radius-md);
  background: linear-gradient(145deg, #0f302d 0%, #163836 52%, #1f5f58 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-brand-panel__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  animation: loginOrbFloat 8s ease-in-out infinite;
}

.login-brand-panel__orb--1 {
  top: 8%;
  right: 10%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.18);
}

.login-brand-panel__orb--2 {
  bottom: 18%;
  left: 8%;
  width: 220px;
  height: 220px;
  background: rgba(0, 148, 134, 0.35);
  animation-delay: -2s;
}

.login-brand-panel__orb--3 {
  top: 42%;
  left: 42%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.12);
  animation-delay: -4s;
}

.login-brand-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--login-radius-md);
  color: #fff;
}

.login-brand-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.login-brand-panel__logo {
  display: block;
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.login-brand-panel__home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--login-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-brand-panel__home:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.login-brand-panel__copy {
  max-width: 34rem;
  margin-top: clamp(2rem, 8vh, 4rem);
}

.login-brand-panel__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.login-brand-panel__headline {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: pre-line;
}

.login-brand-panel__lead {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.login-brand-panel__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.login-feature-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--login-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.login-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--login-radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}

.login-feature-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.login-feature-card__desc {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.login-brand-panel__note {
  margin: 1.25rem 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.68);
}

.login-brand-panel__note a {
  color: #fff;
  text-decoration: underline;
}

@keyframes loginOrbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.04);
  }
}

.login-shell--brand-left .login-form-panel,
.login-shell--brand-left .auth-shell__main {
  align-items: center;
}

.login-shell--brand-left .login-brand-panel {
  flex: 1 1 42%;
  max-width: 50%;
}

.auth-shell--brand-minimal .login-brand-panel {
  flex: 0 0 42%;
  max-width: 42%;
  padding: 0;
}

.auth-shell--brand-minimal .login-brand-panel__mesh {
  inset: 0;
  border-radius: 0;
}

.auth-shell--brand-minimal .login-brand-panel__logo-only {
  position: absolute;
  z-index: 2;
  top: 2rem;
  left: 2rem;
}

.auth-shell--brand-minimal .auth-shell__main {
  flex: 1 1 58%;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: #f7faf9;
}

/* Tam sayfa yeşil canvas — form ortada gömülü */
.auth-shell--green-canvas {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: 0.65rem 1rem 1rem;
  box-sizing: border-box;
  background: var(--auth-bg);
  overflow: hidden;
}

.auth-green-canvas {
  position: absolute;
  inset: 0.65rem 1rem 1rem;
  overflow: hidden;
  border-radius: var(--login-radius-md);
  background: linear-gradient(145deg, #0f302d 0%, #163836 52%, #1f5f58 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-green-canvas__lens-field {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.auth-green-lens {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.82;
  will-change: transform;
}

.auth-green-lens--dark {
  background: radial-gradient(circle, #3a8a82 0%, #24564f 42%, transparent 72%);
}

.auth-green-lens--mid {
  background: radial-gradient(circle, #4a9e96 0%, #2d6b64 48%, transparent 74%);
  opacity: 0.7;
  filter: blur(80px);
}

.auth-green-lens--light {
  background: radial-gradient(circle, #a8e8df 0%, #7ecfc4 38%, transparent 72%);
  opacity: 0.88;
  filter: blur(84px);
  mix-blend-mode: screen;
}

/* ~25% görünür: 100vmin daire, -75vmin ofset */
.auth-green-lens--1 {
  top: -75vmin;
  left: -75vmin;
  width: 100vmin;
  height: 100vmin;
  animation: authGreenLensDrift1 22s ease-in-out infinite;
}

.auth-green-lens--2 {
  right: -75vmin;
  bottom: -75vmin;
  width: 100vmin;
  height: 100vmin;
  animation: authGreenLensDrift2 26s ease-in-out infinite;
}

.auth-green-lens--3 {
  top: -58vmin;
  right: -58vmin;
  width: 96vmin;
  height: 96vmin;
  animation: authGreenLensDrift3 19s ease-in-out infinite;
}

.auth-green-lens--4 {
  bottom: -58vmin;
  left: -58vmin;
  width: 96vmin;
  height: 96vmin;
  animation: authGreenLensDrift4 24s ease-in-out infinite;
}

.auth-green-lens--5 {
  bottom: -78vmin;
  left: 18%;
  width: 88vmin;
  height: 88vmin;
  animation: authGreenLensDrift5 28s ease-in-out infinite;
}

.auth-green-lens-glass {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(168, 221, 214, 0.08);
  box-shadow:
    inset 0 0 48px rgba(184, 236, 230, 0.16),
    0 0 80px rgba(143, 212, 204, 0.12);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  will-change: transform;
}

.auth-green-lens-glass--1 {
  top: -58vmin;
  left: -58vmin;
  width: 78vmin;
  height: 78vmin;
  animation: authGreenLensGlass1 18s ease-in-out infinite;
}

.auth-green-lens-glass--2 {
  right: -58vmin;
  bottom: -58vmin;
  width: 74vmin;
  height: 74vmin;
  animation: authGreenLensGlass2 21s ease-in-out infinite;
}

@keyframes authGreenLensDrift1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(6%, 5%, 0) scale(1.03);
  }
}

@keyframes authGreenLensDrift2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.01);
  }

  50% {
    transform: translate3d(-5%, -4%, 0) scale(0.98);
  }
}

@keyframes authGreenLensDrift3 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  33% {
    transform: translate3d(3%, 3%, 0) scale(1.02);
  }

  66% {
    transform: translate3d(-2%, -2%, 0) scale(0.99);
  }
}

@keyframes authGreenLensDrift4 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(3%, -3%, 0) scale(1.02);
  }
}

@keyframes authGreenLensDrift5 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(0.98);
  }

  50% {
    transform: translate3d(-4%, 5%, 0) scale(1.02);
  }
}

@keyframes authGreenLensGlass1 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(8%, 7%, 0) scale(1.04);
  }
}

@keyframes authGreenLensGlass2 {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.02);
  }

  50% {
    transform: translate3d(-7%, -6%, 0) scale(0.98);
  }
}

.auth-green-canvas__logo-link {
  position: absolute;
  z-index: 3;
  top: calc(1rem + 1.75rem);
  left: calc(1rem + 1.75rem);
}

.auth-green-canvas__logo {
  display: block;
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.auth-green-head {
  width: 100%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.auth-green-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 48px;
  padding-bottom: 24px;
  box-sizing: border-box;
}

.auth-green-head__aside {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-green-head__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
}

.auth-green-head__meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.auth-green-head__meta a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.auth-green-head__title {
  margin: 0 0 60px;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--login-radius-md);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(15, 48, 45, 0.12);
}

.auth-green-top__logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-green-top__logo img {
  display: block;
  max-width: 150px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.auth-shell--green-canvas .auth-shell__main--embedded {
  position: relative;
  z-index: 2;
  height: calc(100dvh - 1.65rem);
  min-height: 0;
  max-height: calc(100dvh - 1.65rem);
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.25rem 1rem;
  background: transparent;
  overflow: hidden;
}

.auth-shell--green-canvas .auth-shell__inner {
  width: 100%;
  max-width: min(780px, 94vw);
  margin: 0 auto;
  height: auto;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.auth-shell__header--on-green {
  text-align: center;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.auth-shell__header--on-green .auth-shell__eyebrow {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
}

.auth-shell__header--on-green .auth-shell__title {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  line-height: 1.15;
}

.auth-shell__header--on-green .auth-shell__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.auth-shell__header--on-green .auth-shell__title {
  color: #fff;
}

.auth-shell__header--on-green .auth-shell__lead {
  color: rgba(255, 255, 255, 0.82);
}

.auth-shell__header--on-green .auth-shell__meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.auth-shell__header--on-green .auth-shell__meta a {
  color: #fff;
  text-decoration: underline;
}

.login-form-panel__home--on-green {
  align-self: center;
  margin-bottom: 0.65rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.login-form-panel__home--on-green:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 767px) {
  .auth-shell--green-canvas {
    padding: 0.5rem 0.75rem 0.75rem;
  }

  .auth-green-canvas {
    inset: 0.5rem 0.75rem 0.75rem;
  }

  .auth-green-canvas__logo-link {
    top: calc(0.75rem + 1.25rem);
    left: calc(0.75rem + 1.25rem);
  }

  .auth-green-canvas__logo {
    max-width: 140px;
  }

  .auth-shell--green-canvas .auth-shell__main--embedded {
    height: calc(100dvh - 1.25rem);
    max-height: calc(100dvh - 1.25rem);
    padding-top: 0;
    padding-bottom: 0.75rem;
  }

  .auth-green-head {
    margin-bottom: 0;
  }

  .auth-green-top__logo img {
    max-width: 128px;
  }

  .auth-green-head__title {
    margin-bottom: 60px;
    padding: 0.75rem 1rem;
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }
}

@media (min-width: 768px) {
  .login-brand-panel {
    display: flex;
    align-items: stretch;
  }

  .login-form-panel,
  .auth-shell__main {
    padding: 2rem;
  }

  .auth-shell--green-canvas .auth-shell__main--embedded {
    padding-top: 0;
    padding-bottom: 1rem;
  }
}

@media (max-width: 1279px) {
  .login-brand-panel__features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-brand-panel__orb,
  .auth-green-lens,
  .auth-green-lens-glass {
    animation: none;
  }
}

@media (max-width: 767px) {
  .auth-shell__logo--mobile {
    display: inline-block;
  }
}

@media (min-width: 768px) {
  .auth-shell__logo--mobile {
    display: none;
  }
}
