/* Kimlik doğrulama ekranları — ürünün tasarım diliyle. */

html:has(> body.auth),
body.auth {
  height: 100%;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  align-items: stretch;
  background: var(--surface);
}

.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 32px;
}

.auth__form {
  width: 100%;
  max-width: 380px;
}

.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.auth__title {
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth__subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.auth__fields {
  margin-top: 28px;
}

.auth__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.auth__field {
  display: flex;
  width: 100%;
  height: 44px;
  margin-bottom: 18px;
}

.auth__field input {
  font-size: 14px;
}

.auth__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
}

.auth__remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.auth__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.auth__submit {
  height: 44px;
  font-size: 15px;
}

.auth__foot {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.auth .alert {
  align-items: center;
}

/* Sağ tanıtım paneli */
.auth__hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 48px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, #1e7a3f 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #0d5c2e 0%, transparent 60%),
    #0f3d22;
  color: #fff;
}

.auth__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 0%, transparent 75%);
}

.auth__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
}

.auth__hero-title {
  font-size: 34px;
  line-height: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth__hero-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 24px;
  color: rgb(255 255 255 / 78%);
}

.auth__hero-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth__hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgb(255 255 255 / 90%);
}

.auth__hero-list svg {
  color: #6ee7a0;
}

@media (max-width: 899px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth__hero {
    display: none;
  }
}

/* Hata sayfaları */
.errpage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
  background: var(--canvas);
}

.errpage__inner {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.errpage__inner .auth__brand {
  margin-bottom: 32px;
}

.errpage__code {
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.errpage__title {
  margin-top: 12px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
}

.errpage__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
}

.errpage__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.errpage__trace {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted-2);
}
