.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  min-height: calc(100vh - var(--header));
  background: #fff;
}

.auth-visual {
  position: sticky;
  top: var(--header);
  align-self: start;
  height: calc(100vh - var(--header));
  overflow: hidden;
  background: #0b2f6b;
}

.auth-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.auth-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 24, 58, 0.08) 18%, rgba(8, 24, 58, 0.78) 100%);
}

.auth-caption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.auth-caption span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-caption h2 {
  margin: 0 0 8px;
  max-width: 460px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.auth-caption p {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.88);
}

.auth-split[data-mode="login"][data-account="bireysel"] .is-login-bireysel,
.auth-split[data-mode="login"][data-account="kurumsal"] .is-login-kurumsal,
.auth-split[data-mode="signup"][data-account="bireysel"] .is-signup-bireysel,
.auth-split[data-mode="signup"][data-account="kurumsal"] .is-signup-kurumsal,
.auth-split[data-mode="verify"] .is-verify,
.auth-split[data-mode="reset"] .is-reset {
  opacity: 1;
}

.auth-side {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px 80px;
  overflow: auto;
  max-height: calc(100vh - var(--header));
}

.auth-card {
  width: min(440px, 100%);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.auth-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-mode { display: none; }

.auth-split[data-mode="login"] .auth-mode.is-login,
.auth-split[data-mode="signup"] .auth-mode.is-signup {
  display: block;
  animation: authFade 0.55s ease;
}

.auth-split[data-mode="login"] .only-signup,
.auth-split[data-mode="signup"] .only-login {
  display: none !important;
}

@keyframes authFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  background: var(--soft);
  border-radius: 999px;
}

.account-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}

.account-switch button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.only-bireysel,
.only-kurumsal { display: contents; }

.only-kurumsal[hidden],
.only-bireysel[hidden] { display: none !important; }

.auth-choice {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.98rem;
}

.auth-gmail {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.auth-gmail:hover { border-color: #d1d5db; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #eceff3;
}

.auth-panel { margin-top: 14px; }

.auth-panel[hidden] { display: none !important; }

.auth-form { display: grid; gap: 8px; }

.pass-field { position: relative; }

.pass-field .field-input {
  padding-right: 46px;
}

.pass-field .field-input::-ms-reveal,
.pass-field .field-input::-ms-clear {
  display: none;
}

.pass-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.pass-toggle:hover,
.pass-toggle:focus-visible {
  color: var(--navy);
  background: rgba(17, 24, 39, 0.06);
}

.pass-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

html[data-theme="dark"] .pass-toggle { color: #9eb0c9; }

html[data-theme="dark"] .pass-toggle:hover,
html[data-theme="dark"] .pass-toggle:focus-visible {
  color: #e8edf5;
  background: rgba(255, 255, 255, 0.08);
}

.auth-form .field-label { margin-top: 6px; }

.auth-form .btn-dark-pill {
  width: 100%;
  margin-top: 10px;
}

.auth-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy);
}

.auth-forgot {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-note {
  background: var(--soft);
  border-radius: 18px;
  padding: 16px;
  color: #374151;
}

.auth-note p { margin: 0 0 12px; }

.auth-note .btn-dark-pill { width: 100%; }

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
}

.auth-switch a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.auth-fine {
  margin: 14px 0 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-hint {
  display: inline;
  margin: 0;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-form .field-hint { display: block; margin-top: 4px; }

.field-error {
  margin: 2px 0 0;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
}

.field-error[hidden],
.auth-alert[hidden],
.auth-form[hidden] { display: none !important; }

.field-input.is-invalid,
.dash-input.is-invalid { border-color: #fca5a5; }

p.field-hint { display: block; margin-top: 4px; }

.auth-alert {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-alert.is-ok {
  background: #ecfdf3;
  color: #166534;
}

.auth-code {
  letter-spacing: 0.28em;
  font-weight: 700;
}

.auth-quiet {
  justify-self: start;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.auth-quiet:disabled { color: #9ca3af; cursor: progress; }

.auth-form .btn-dark-pill:disabled,
.stack-form .btn-dark-pill:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

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

  .auth-visual {
    position: relative;
    top: auto;
    height: 280px;
  }

  .auth-caption {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .auth-caption h2 { font-size: 1.6rem; }

  .auth-side {
    max-height: none;
    overflow: visible;
    padding: 28px 18px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-photo,
  .auth-caption { transition: none; }

  .auth-mode { animation: none; }
}
