:root {
  --auth-accent: #3B6FE0;
  --auth-accent-hover: #2957BD;
  --auth-text: #161B26;
  --auth-text-secondary: #4B5565;
  --auth-text-muted: #8A93A6;
  --auth-border: #E4E7EE;
  --auth-bg: #F5F6FA;
  --auth-surface: #FFFFFF;
  --auth-danger: #DC2626;
  --auth-font: 'IBM Plex Sans', system-ui, sans-serif;
  --auth-hero-bg: linear-gradient(165deg, #152a5c 0%, #1e4089 38%, #2957BD 68%, #3B6FE0 100%);
}

*, *::before, *::after { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-font);
  color: var(--auth-text);
  background: #eef2f8;
  -webkit-font-smoothing: antialiased;
}

.auth-body a {
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-body a:hover {
  color: var(--auth-accent-hover);
}

/* —— Split layout —— */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.auth-hero {
  --auth-px: 0;
  --auth-py: 0;
  position: relative;
  background: var(--auth-hero-bg);
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.auth-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, rgba(15, 32, 72, 0.88) 0%, rgba(30, 64, 137, 0.82) 45%, rgba(41, 87, 189, 0.75) 100%),
    radial-gradient(
      ellipse 80% 60% at calc(30% + var(--auth-px) * 6%) calc(20% + var(--auth-py) * 5%),
      rgba(59, 111, 224, 0.35),
      transparent 55%
    );
  pointer-events: none;
  animation: auth-hero-overlay-breathe 14s ease-in-out infinite;
}

.auth-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.auth-hero__bg-network {
  position: absolute;
  inset: -10%;
  background: url('../images/auth/hero-network.svg') center center / cover no-repeat;
  opacity: 0.58;
  transform:
    translate3d(calc(var(--auth-px) * 28px), calc(var(--auth-py) * 22px), 0)
    scale(1.08);
  animation: auth-hero-network-drift 32s ease-in-out infinite alternate;
  will-change: transform;
}

.auth-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-hero__bg-grid {
  position: absolute;
  inset: -25%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 75% at 45% 45%, #000 20%, transparent 72%);
  transform: translate3d(calc(var(--auth-px) * 14px), calc(var(--auth-py) * 12px), 0);
  animation: auth-hero-grid-drift 22s linear infinite;
  will-change: transform, background-position;
}

.auth-hero__bg-pulse {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}

.auth-hero__bg-pulse--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 10%;
  left: 5%;
  background: radial-gradient(circle, rgba(90, 150, 255, 0.45) 0%, transparent 68%);
  transform: translate3d(calc(var(--auth-px) * -24px), calc(var(--auth-py) * -20px), 0);
  animation: auth-hero-pulse-opacity 16s ease-in-out infinite;
  will-change: transform, opacity;
}

.auth-hero__bg-pulse--2 {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  bottom: 8%;
  right: 0;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.35) 0%, transparent 70%);
  transform: translate3d(calc(var(--auth-px) * 18px), calc(var(--auth-py) * 16px), 0);
  animation: auth-hero-pulse-opacity 20s ease-in-out infinite reverse;
  will-change: transform, opacity;
}

.auth-hero__bg-shine {
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 255, 255, 0.04) 40deg,
    rgba(140, 190, 255, 0.14) 90deg,
    transparent 140deg,
    rgba(255, 255, 255, 0.05) 220deg,
    transparent 360deg
  );
  animation: auth-hero-shine-rotate 48s linear infinite;
}

.auth-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at calc(20% + var(--auth-px) * 4%) calc(30% + var(--auth-py) * 3%), rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at calc(85% + var(--auth-px) * -3%) calc(70% + var(--auth-py) * -4%), rgba(120, 170, 255, 0.22) 0%, transparent 50%);
  pointer-events: none;
  animation: auth-hero-mesh-drift 18s ease-in-out infinite alternate;
}

@keyframes auth-hero-network-drift {
  0% {
    opacity: 0.52;
    filter: brightness(0.95);
  }
  100% {
    opacity: 0.68;
    filter: brightness(1.05);
  }
}

@keyframes auth-hero-overlay-breathe {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.94;
  }
}

@keyframes auth-hero-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, 40px 40px;
  }
}

@keyframes auth-hero-pulse-opacity {
  0%, 100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes auth-hero-shine-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes auth-hero-mesh-drift {
  0% {
    background-position: 0% 0%, 100% 100%;
  }
  100% {
    background-position: 8% 5%, 92% 95%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hero::after,
  .auth-hero__mesh,
  .auth-hero__bg-network,
  .auth-hero__bg-grid,
  .auth-hero__bg-pulse,
  .auth-hero__bg-shine {
    animation: none;
  }
}

.auth-hero__inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: clamp(28px, 4vh, 48px) clamp(28px, 4.5vw, 56px) clamp(28px, 4vh, 48px) clamp(40px, 6.5vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vh, 40px);
  align-content: center;
  align-items: center;
}

.auth-hero__col--copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: clamp(32px, 5vh, 48px);
  width: 100%;
  max-width: 44rem;
}

.auth-hero__copy-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.5vh, 22px);
  width: 100%;
}

.auth-hero__copy-block .auth-brand {
  margin-bottom: 0;
}

/* —— Marka: tek satır + gradient shine —— */
.auth-brand {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 10px;
}

.auth-brand--hero,
.auth-brand--hero:hover {
  color: #fff;
}

.auth-brand__text {
  display: inline-block;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
}

.auth-brand--hero .auth-brand__text {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 20, 60, 0.35);
  background-image: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 44%,
    #ffffff 46%,
    #e8f6ff 49%,
    #ffffff 52%,
    #ffffff 54%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-brand-shine 1.85s linear infinite;
}

.auth-brand--hero:hover .auth-brand__text {
  animation-duration: 1.4s;
}

.auth-brand--panel .auth-brand__text {
  font-size: clamp(1.625rem, 5.5vw, 2.125rem);
  letter-spacing: 0.16em;
  background-image: linear-gradient(
    100deg,
    #1e4089 0%,
    #3B6FE0 44%,
    #6ba8ff 50%,
    #3B6FE0 56%,
    #1e4089 100%
  );
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auth-brand-shine 2.2s linear infinite;
}

@keyframes auth-brand-shine {
  0% {
    background-position: 130% 50%;
  }
  100% {
    background-position: -30% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand__text {
    animation: none;
    -webkit-text-fill-color: inherit;
    background: none;
  }

  .auth-brand--hero .auth-brand__text {
    color: #fff;
  }

  .auth-brand--panel .auth-brand__text {
    color: var(--auth-accent);
  }
}

.auth-hero__title {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.auth-hero__lead {
  margin: 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

.auth-hero__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 36rem;
}

.auth-hero__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.auth-hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  color: #fff;
}

.auth-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  background: #ffffff;
}

.auth-panel__surface {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
  border-left: 1px solid #f0f2f5;
}

.auth-panel__pattern {
  display: none;
}

.auth-panel__brand-bar {
  flex-shrink: 0;
  text-align: center;
  padding: 0 0 4px;
  margin-bottom: 0;
}

.auth-panel__brand-bar .auth-brand {
  margin-bottom: 0;
}

.auth-panel__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 28px) clamp(16px, 3vw, 24px);
}

.auth-panel__wrap {
  width: 100%;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
}

.auth-panel__wrap.auth-card--wide {
  max-width: none;
}

.auth-panel__form-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 1 auto;
  width: 100%;
  padding: clamp(8px, 2vh, 16px) clamp(4px, 2vw, 8px) clamp(16px, 2vh, 24px);
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.auth-card__brand {
  font-weight: 700;
  font-size: 14px;
  color: var(--auth-accent);
  margin-bottom: -4px;
}

.auth-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}

.auth-card__lead {
  font-size: 14px;
  color: var(--auth-text-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
  max-width: none;
}

.auth-page__head {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 0;
  border-bottom: 1px solid #eef1f6;
}

.auth-panel__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 22px 0;
  position: relative;
  z-index: 2;
}

.auth-page__head .auth-card__lead {
  margin-left: auto;
  margin-right: auto;
}

.auth-panel__form-shell > .auth-form {
  margin-top: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 1 auto;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--auth-text);
}

.auth-field__label sup {
  color: var(--auth-danger);
  font-size: 10px;
}

.auth-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid #e8eaef;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.3;
  font-family: inherit;
  color: var(--auth-text);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input:focus {
  outline: none;
  border-color: #c5d0e3;
  box-shadow: 0 0 0 3px rgba(59, 111, 224, 0.1);
}

.auth-input.is-invalid {
  border-color: var(--auth-danger);
}

.auth-field__error {
  font-size: 13px;
  color: var(--auth-danger);
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.auth-form__between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--auth-text-secondary);
  cursor: pointer;
}

.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--auth-accent);
  margin: 0;
  flex-shrink: 0;
}

.auth-check--top {
  align-items: flex-start;
  line-height: 1.45;
  font-size: 13px;
}

.auth-check--top input {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-link {
  font-size: 14px;
  font-weight: 600;
}

.auth-btn {
  background: var(--auth-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: background 0.15s, transform 0.1s;
}

.auth-btn:active {
  transform: scale(0.99);
}

.auth-btn:hover {
  background: var(--auth-accent-hover);
}

.auth-btn--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-btn__icon {
  flex-shrink: 0;
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--auth-text-secondary);
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #eef1f6;
}

.auth-footer a {
  font-weight: 600;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-hero__inner {
    min-height: auto;
    padding-bottom: 36px;
  }

  .auth-hero__col--copy {
    max-width: none;
  }

  .auth-hero__title {
    max-width: none;
  }

  .auth-panel__surface {
    border-left: none;
  }

  .auth-panel__body {
    min-height: auto;
  }

  .auth-panel__wrap {
    min-height: auto;
  }

  .auth-panel__form-shell {
    padding: 20px 20px 32px;
  }
}

@media (min-width: 961px) {
  .auth-shell {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
  }

  .auth-hero__inner {
    padding-left: clamp(56px, 9vw, 128px);
  }

  .auth-hero__col--copy {
    max-width: 46rem;
    margin-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
  }

  .auth-hero {
    min-height: 100vh;
  }

  .auth-panel {
    min-height: 100vh;
  }

  .auth-panel__surface {
    min-height: 100vh;
  }

  .auth-panel__body {
    min-height: 100vh;
    justify-content: center;
  }
}
