/*
 * Giriş (login.php) ve kayıt (business-register.php): geniş ekranda sayfanın yarısı form, yarısı görsel panel.
 * Görsel: api/includes/AuthVisual.php. Dar ekranlarda (< 960px) görsel gizlenir, mevcut tek sütun düzen aynen kalır.
 */
.auth-visual { display: none; }
.auth-split { flex: 1; display: block; }

@media (min-width: 960px) {
  /* ---------- Düzen ---------- */
  body.auth, body.registration-page { min-height: 100vh; }
  .auth-split,
  .registration-shell {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
    min-height: 100vh; padding: 12px; box-sizing: border-box;
  }
  .auth-split__form { display: flex; flex-direction: column; min-width: 0; min-height: calc(100vh - 24px); }
  .auth-split__form .auth-top { padding: 18px 40px; }
  .auth-split__form .auth-main { padding: 12px 40px 32px; }
  .auth-split__form .auth-foot { padding-bottom: 20px; }

  /* Başlıklar ve metinler sola yaslı (örnek tasarımdaki gibi) */
  .auth-split .auth-card h1, .auth-split .auth-sub, .auth-split .auth-switch, .auth-split .auth-hint { text-align: left; }
  .auth-split .auth-forgot { margin-left: 0; }
  .auth-split [data-auth-step="twofactor"] h1, .auth-split [data-auth-step="twofactor"] .auth-sub, .auth-split .auth-otp-text, .auth-split .auth-otp-resend { text-align: center; }
  .auth-split .auth-card { width: min(100%, 380px); }

  /* Kayıt: sol yarı form */
  .registration-main { display: flex; flex-direction: column; min-width: 0; padding: 0 40px 24px; }
  /* Logo girişteki gibi formun sol üst köşesine sabit */
  .registration-main .mobile-brand { align-self: stretch; width: 100%; margin: 0; padding: 18px 0; text-align: left; }
  .registration-main .mobile-brand .brand { justify-content: flex-start; margin: 0; }
  /* Düğmeler sola hizalı */
  .registration-card .form-actions { justify-content: flex-start; }
  .registration-card .form-login, .registration-card .form-footnote { text-align: left; justify-content: flex-start; }
  /* Form alanı, logo ile alt bağlantı arasında dikey olarak ortalanır (üst/alt boşluk eşit) */
  .registration-card { width: min(100%, 480px); margin: auto; flex: 0 1 auto; padding-top: 0; }
  .form-heading { text-align: left; }
  .form-heading p { margin: 0; }
  .registration-main .mobile-footer { text-align: left; max-width: 480px; margin: 0 auto; width: 100%; }

  /* ---------- Görsel panel ---------- */
  .auth-visual {
    position: sticky; top: 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    height: calc(100vh - 24px); padding: 40px 36px 34px; overflow: hidden; box-sizing: border-box;
    border: 1px solid #25252b; border-radius: 28px; color: #f3f1f5;
    background:
      radial-gradient(circle at 12% 8%, rgba(122, 46, 153, .38), transparent 46%),
      radial-gradient(circle at 92% 92%, rgba(20, 122, 130, .26), transparent 50%),
      radial-gradient(circle at 80% 14%, rgba(216, 142, 242, .08), transparent 40%),
      #111114;
  }
  .av-stage { flex: 1; display: grid; place-items: center; width: 100%; min-height: 0; }
  .av-stage svg { width: min(100%, 520px, 62vh); height: auto; overflow: visible; }
  .av-line { stroke: rgba(255, 255, 255, .17); stroke-width: 1.2; stroke-dasharray: 3 6; animation: av-flow 2.4s linear infinite; }
  .av-hub { fill: #17171c; stroke: #34343c; stroke-width: 1.2; }
  .av-pulse { transform-origin: 220px 220px; animation: av-pulse 3.2s ease-out infinite; }
  .av-node rect { fill: #18181d; stroke: #2e2e36; stroke-width: 1.2; }
  .av-node { animation: av-float 6s ease-in-out infinite; }
  .av-caption { width: min(100%, 460px); text-align: center; }
  .av-slide { display: none; }
  .av-slide.is-active { display: block; animation: av-in .5s ease both; }
  .av-slide strong { display: block; margin: 0 0 6px; font: 700 18px/1.3 'Manrope', system-ui, sans-serif; letter-spacing: -.02em; }
  .av-slide span { display: block; color: rgba(243, 241, 245, .66); font-size: 14px; line-height: 1.6; }
  .av-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .av-dot { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .2); cursor: pointer; transition: background .2s, width .2s; }
  .av-dot.is-active { width: 34px; background: rgba(255, 255, 255, .85); }
  .av-dot:focus-visible { outline: 2px solid #D88EF2; outline-offset: 3px; }

  /* Dil anahtarı görselin üstüne biner: koyu zeminde okunur kalsın */
  .lang-switch { background: rgba(20, 20, 24, .86); border-color: rgba(255, 255, 255, .16); }
  .lang-switch a { color: #cbd5e1; }
  .lang-switch a:hover { color: #fff; }
  .lang-switch a.is-active { background: #f3f1f5; color: #111114; }
}

@keyframes av-flow { to { stroke-dashoffset: -18; } }
@keyframes av-pulse { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes av-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes av-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .av-line, .av-pulse, .av-node, .av-slide.is-active { animation: none; }
}
