/* Giriş / üye ol sayfası. Ortak renkler ve ikon kutuları landing.css dosyasındadır.
   .auth-tab, .auth-form, .active, .loading ve mesaj kutularını sayfadaki betik yönetir. */
.lp [hidden] { display: none !important; }

.lp .au-page { position: relative; overflow: hidden; min-height: 100vh; padding: 132px 0 34px; isolation: isolate; }
.lp .au-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 45% 45% at 22% 8%, rgba(123, 31, 228, .52), transparent 70%),
  radial-gradient(ellipse 34% 40% at 92% 28%, rgba(236, 72, 153, .22), transparent 70%),
  radial-gradient(ellipse 40% 40% at 72% 96%, rgba(59, 130, 246, .18), transparent 70%); }
.lp .au-page::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.lp .au-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; align-items: center; }

/* ── Form kartı ─────────────────────────────────────────── */
.lp .au-card { grid-column: 2; grid-row: 1; min-width: 0; padding: 40px; border-radius: 30px; background: linear-gradient(180deg, #1a1135, #120c26) padding-box, linear-gradient(160deg, rgba(168, 85, 247, .9), rgba(255, 255, 255, .08) 38%, rgba(236, 72, 153, .55)) border-box; border: 1px solid transparent; box-shadow: 0 60px 120px -50px rgba(123, 31, 228, .8); }
.lp .au-title h1 { font: 800 31px/1.2 var(--head); letter-spacing: -.035em; color: #fff; }
.lp .au-title p { margin-top: 6px; font-size: 15px; color: var(--muted); }
/* Başlık, açık olan forma göre değişir. */
.lp .au-title-register, .lp .au-title-reset { display: none; }
.lp .au-card:has(#registerForm.active) .au-title-login { display: none; }
.lp .au-card:has(#registerForm.active) .au-title-register { display: block; }
.lp .au-card:has(#forgotPasswordForm.active, #resetPasswordForm.active) .au-title-login { display: none; }
.lp .au-card:has(#forgotPasswordForm.active, #resetPasswordForm.active) .au-title-reset { display: block; }
.lp .au-card:has(#forgotPasswordForm.active, #resetPasswordForm.active) .auth-tabs { display: none; }
.lp .au-idea { margin: 20px 0 0; padding: 13px 16px; border-radius: 14px; background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .4); font-size: 14px; line-height: 1.55; color: #a7f3d0; }
.lp .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 26px 0 0; padding: 5px; border-radius: 16px; background: rgba(6, 4, 16, .6); border: 1px solid var(--line); }
.lp .auth-tab { height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; font: 700 14.5px var(--head); color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.lp .auth-tab:hover { color: #fff; }
.lp .auth-tab.active { background: var(--btn); color: #fff; box-shadow: 0 12px 26px -12px rgba(123, 31, 228, .95); }

.lp .auth-form { display: none; margin: 24px 0 0; }
.lp .auth-form.active { display: block; animation: au-in .4s var(--ease) both; }
@keyframes au-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp .au-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lp .auth-form .form-group { min-width: 0; margin: 0 0 16px; }
.lp .auth-form .form-group > label { display: block; margin: 0 0 8px; font: 600 13.5px var(--body); color: #ddd6f3; }
.lp .auth-form .input-group { position: relative; display: block; }
.lp .auth-form .input-icon { position: absolute; left: 17px; top: 27px; transform: translateY(-50%); z-index: 2; font-size: 14px; color: #8f7fc0; pointer-events: none; transition: color .25s; }
.lp .auth-form .input-group:focus-within .input-icon { color: #d8b4fe; }
.lp .auth-form .form-control { display: block; width: 100%; height: 54px; margin: 0; padding: 0 46px 0 45px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(6, 4, 16, .55); box-shadow: none; outline: 0; font: 500 15px var(--body); color: #fff; text-overflow: ellipsis; transition: border-color .25s, box-shadow .25s, background .25s; }
/* Bootstrap, .input-group içindeki kutunun köşelerini sıfırlıyor. */
.lp .auth-form .input-group > .form-control { border-radius: 15px !important; }
.lp .auth-form .form-control::placeholder { color: var(--dim); }
.lp .auth-form .form-control:hover { border-color: rgba(196, 181, 253, .42); }
.lp .auth-form .form-control:focus { border-color: #a855f7; background: rgba(6, 4, 16, .8); box-shadow: 0 0 0 4px rgba(147, 51, 234, .25); }
.lp .auth-form .form-control:user-invalid { border-color: #fb7185; }
.lp .auth-form .form-control:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 100px #140e29 inset; }
.lp .auth-form .password-toggle { position: absolute; right: 7px; top: 7px; z-index: 2; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #8f7fc0; }
.lp .auth-form .password-toggle:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lp .auth-form .field-error { display: none; }
.lp .au-two .form-control { padding-right: 42px; }
.lp .au-row { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.lp .forgot-link { font-size: 14px; font-weight: 600; color: #d8b4fe; }
.lp .forgot-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp .auth-form-note { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.lp .au-rules { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; padding: 0; list-style: none; }
.lp .au-rules li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .035); font-size: 12.5px; color: var(--muted); transition: background .25s, color .25s, border-color .25s; }
.lp .au-rules li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); transition: background .25s; }
.lp .au-rules li.au-ok { border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); color: #a7f3d0; }
.lp .au-rules li.au-ok::before { background: var(--green); }
.lp .auth-form .form-check { min-height: 0; margin: 0 0 20px; padding: 0; }
.lp .auth-form .form-check-label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.lp .auth-form .form-check-input { float: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--line-2); background-color: rgba(6, 4, 16, .6); }
.lp .auth-form .form-check-input:checked { background-color: var(--brand); border-color: var(--brand-2); }
.lp .auth-form .form-check-label a { color: #d8b4fe; text-decoration: underline; text-underline-offset: 3px; }
.lp .auth-submit-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 56px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--btn); font: 700 16px var(--head); color: #fff; box-shadow: 0 14px 34px -12px rgba(123, 31, 228, .9), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.lp .auth-submit-btn i { font-size: 13px; transition: transform .25s var(--ease); }
.lp .auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(147, 51, 234, 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.lp .auth-submit-btn:hover i { transform: translateX(3px); }
.lp .auth-submit-btn.loading { pointer-events: none; opacity: .8; transform: none; }
.lp .auth-submit-btn.loading::after { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: au-spin .8s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.lp .auth-secondary-btn { width: 100%; height: 50px; margin-top: 11px; border: 1px solid var(--line-2); border-radius: 15px; background: rgba(255, 255, 255, .04); font: 600 14.5px var(--head); color: #e3dcf7; }
.lp .auth-secondary-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.lp .error-message, .lp .success-message { display: none; margin: 0 0 18px; padding: 14px 17px; border-radius: 14px; border: 1px solid; font-size: 14px; font-weight: 500; line-height: 1.5; }
.lp .error-message { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .45); color: #fecdd3; }
.lp .success-message { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .45); color: #a7f3d0; }

/* ── Tanıtım tarafı ─────────────────────────────────────── */
.lp .au-side { grid-column: 1; grid-row: 1; min-width: 0; }
.lp .au-side h2 { margin: 0 0 16px; font: 800 clamp(34px, 3.8vw, 50px)/1.1 var(--head); letter-spacing: -.045em; }
.lp .au-side > p { max-width: 480px; font-size: 17px; color: var(--muted); }
.lp .au-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.lp .au-features li { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.lp .au-features .l-ico { width: 42px; height: 42px; border-radius: 13px; font-size: 16px; }
.lp .au-features b { display: block; margin-bottom: 3px; font: 700 15.5px var(--head); color: #fff; }
.lp .au-features div span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.lp .au-shots { display: flex; align-items: flex-start; margin: 34px 0 0; padding: 6px 12px 12px; }
.lp .au-shots img { width: 36%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9); animation: au-float 7s ease-in-out infinite alternate; }
.lp .au-shots img + img { margin-left: -4%; }
.lp .au-shots img:nth-child(1) { rotate: -5deg; }
.lp .au-shots img:nth-child(2) { position: relative; z-index: 1; animation-delay: -2.4s; }
.lp .au-shots img:nth-child(3) { rotate: 5deg; animation-delay: -4.6s; }
@keyframes au-float { to { transform: translateY(-10px); } }
.lp .au-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.lp .au-legal a:hover { color: #fff; }

/* ── Dar ekranlar: form önce gelir ──────────────────────── */
@media (max-width: 1100px) {
  .lp .au-layout { grid-template-columns: minmax(0, 560px); justify-content: center; gap: 44px; }
  .lp .au-card { grid-column: 1; }
  .lp .au-side { grid-column: 1; grid-row: 2; text-align: center; }
  .lp .au-side > p { margin: 0 auto; }
  .lp .au-features { text-align: left; }
  .lp .au-shots { display: none; }
}
@media (max-width: 600px) {
  .lp .au-page { padding-top: 100px; }
  .lp .au-page .l-wrap { padding: 0 14px; }
  .lp .au-card { padding: 24px 18px; border-radius: 22px; }
  .lp .au-title h1 { font-size: 25px; }
  .lp .au-two { grid-template-columns: minmax(0, 1fr); }
  .lp .au-features { grid-template-columns: minmax(0, 1fr); }
  .lp .au-features li { flex-direction: row; align-items: center; padding: 13px; }
  .lp .au-legal { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp .au-shots img { animation: none; }
}

/* ── Açık tema (yalnız renkler; düğme js/theme-mode.js) ── */
html[data-mode="light"] .lp .au-page::before { background:
  radial-gradient(ellipse 45% 70% at 50% 0%, rgba(147, 51, 234, .2), transparent 70%),
  radial-gradient(ellipse 30% 55% at 8% 65%, rgba(236, 72, 153, .13), transparent 70%),
  radial-gradient(ellipse 30% 55% at 92% 60%, rgba(99, 102, 241, .14), transparent 70%); }
html[data-mode="light"] .lp .au-page::after { background-image: linear-gradient(rgba(76, 29, 149, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 29, 149, .055) 1px, transparent 1px); }
html[data-mode="light"] .lp .au-card { background: linear-gradient(180deg, #fff, #fdfcff) padding-box, linear-gradient(160deg, rgba(147, 51, 234, .65), rgba(46, 16, 101, .1) 38%, rgba(236, 72, 153, .45)) border-box; box-shadow: 0 54px 100px -50px rgba(123, 31, 228, .62); }
html[data-mode="light"] .lp .au-title h1 { color: #17112e; }
html[data-mode="light"] .lp .au-idea { background: #ecfdf5; color: #065f46; }
html[data-mode="light"] .lp .auth-tabs { background: #f3f0fc; }
html[data-mode="light"] .lp .auth-tab:not(.active):hover { color: #17112e; }
html[data-mode="light"] .lp .auth-form .form-group > label { color: #3b3358; }
html[data-mode="light"] .lp .auth-form .input-icon { color: #7c6fa8; }
html[data-mode="light"] .lp .auth-form .input-group:focus-within .input-icon { color: #6d28d9; }
html[data-mode="light"] .lp .auth-form .form-control { background: #fbfaff; color: #17112e; }
html[data-mode="light"] .lp .auth-form .form-control:hover { border-color: rgba(123, 31, 228, .4); }
html[data-mode="light"] .lp .auth-form .form-control:focus { border-color: #8b2cf0; background: #fff; box-shadow: 0 0 0 4px rgba(147, 51, 234, .16); }
html[data-mode="light"] .lp .auth-form .form-control:user-invalid { border-color: #e11d48; }
html[data-mode="light"] .lp .auth-form .form-control:-webkit-autofill { -webkit-text-fill-color: #17112e; -webkit-box-shadow: 0 0 0 100px #fbfaff inset; }
html[data-mode="light"] .lp .auth-form .password-toggle { color: #7c6fa8; }
html[data-mode="light"] .lp .auth-form .password-toggle:hover { background: #f1ebfe; color: #4c1d95; }
html[data-mode="light"] .lp .forgot-link { color: #6d28d9; }
html[data-mode="light"] .lp .forgot-link:hover { color: #2e1065; }
html[data-mode="light"] .lp .au-rules li { background: #fff; }
html[data-mode="light"] .lp .au-rules li.au-ok { background: #ecfdf5; color: #065f46; }
html[data-mode="light"] .lp .auth-form .form-check-input { background-color: #fff; }
html[data-mode="light"] .lp .auth-form .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
html[data-mode="light"] .lp .auth-form .form-check-label a { color: #6d28d9; }
html[data-mode="light"] .lp .auth-secondary-btn { background: #fff; color: #2f2850; }
html[data-mode="light"] .lp .auth-secondary-btn:hover { background: #f1ebfe; color: #2e1065; }
html[data-mode="light"] .lp .error-message { background: #fff1f2; color: #9f1239; }
html[data-mode="light"] .lp .success-message { background: #ecfdf5; color: #065f46; }
html[data-mode="light"] .lp .au-features li { background: #fff; box-shadow: 0 16px 34px -28px rgba(60, 20, 120, .42); }
html[data-mode="light"] .lp .au-features b { color: #17112e; }
html[data-mode="light"] .lp .au-shots img { box-shadow: 0 28px 46px -24px rgba(60, 20, 120, .55); }
html[data-mode="light"] .lp .au-legal a:hover { color: #6d28d9; }
