/* ==========================================================================
   Kimlik doğrulama sayfaları — v2
   ========================================================================== */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Sol: form --- */

.auth__main {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--gutter);
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.auth__content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding-block: var(--sp-10);
}

.auth__card {
  width: 100%;
  max-width: 420px;
}

.auth__title {
  font-size: var(--fs-xl);
  font-weight: 800;
}

.auth__subtitle {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-8);
  color: var(--c-muted);
}

.auth__stack {
  display: grid;
  gap: var(--sp-6);
}

.auth__switch {
  margin-top: var(--sp-8);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.auth__switch a {
  color: var(--c-text);
  font-weight: 650;
  transition: color var(--dur-fast) ease;
}

.auth__switch a:hover {
  color: var(--c-accent);
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) ease;
}

.auth__back:hover {
  color: var(--c-text);
}

.auth__back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.auth__status-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--sp-6);
  border: 1px solid rgba(255, 122, 112, 0.25);
  border-radius: var(--r-lg);
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

/* --- Sağ: marka paneli --- */

.auth__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 12px;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  background:
    linear-gradient(var(--c-border) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--c-surface);
}

.auth__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 29, 33, 0.3) 0%, rgba(27, 29, 33, 0.6) 55%, var(--c-surface) 85%);
  pointer-events: none;
}

.auth__visual {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
}

.auth__aside-text {
  position: relative;
  max-width: 460px;
}

.auth__slogan {
  margin-bottom: var(--sp-3);
  color: var(--c-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.auth__aside-text h2 {
  font-size: var(--fs-xl);
}

.auth__aside-text p:last-child {
  margin-top: var(--sp-3);
  color: var(--c-muted);
}

@media (max-width: 980px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth__aside {
    display: none;
  }
}
