/* ============================================================================
   TURSAN eSANAYI — AUTH SAYFALARI (login / register / reset-password)
   Marka dili: lacivert #0b2447 · altın #C9A84C · cyan #009DBE · Poppins
   İki tema: varsayılan (açık) + html.uk-karanlik (koyu)
   ============================================================================ */

body {
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 100vh;
  background: #eef1f6;
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  color: #1f2a3d;
}

html.uk-karanlik body { background: #0e1c33; color: #e6edf7; }

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #eef1f6; }
body::-webkit-scrollbar-thumb { background: #c3cede; border-radius: 8px; }
body::-webkit-scrollbar-thumb:hover { background: #a9b8cc; }
html.uk-karanlik body::-webkit-scrollbar-track { background: #0e1c33; }
html.uk-karanlik body::-webkit-scrollbar-thumb { background: #2c4066; }
html.uk-karanlik body::-webkit-scrollbar-thumb:hover { background: #3d5580; }

/* ── Yerleşim ─────────────────────────────────────────────────────────── */
.auth-main {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(340px, 38%) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  animation: authGiris .45s ease both;
}

html.uk-karanlik .auth-wrap {
  background: #16294a;
}

@keyframes authGiris {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Sol marka paneli (açık tema taban, koyu tema aşağıda) ────────────── */
.auth-marka {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 42px 36px;
  color: #0b2447;
  border-right: 1px solid #e2e8f0;
  background:
    radial-gradient(circle at 88% -12%, rgba(201, 168, 76, .16), transparent 55%),
    radial-gradient(circle at -12% 112%, rgba(0, 157, 190, .14), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f3f7fc 55%, #e9eff8 100%);
}
html.uk-karanlik .auth-marka {
  color: #fff;
  border-right-color: #2c4066;
  background:
    radial-gradient(circle at 88% -12%, rgba(201, 168, 76, .30), transparent 55%),
    radial-gradient(circle at -12% 112%, rgba(0, 157, 190, .28), transparent 55%),
    linear-gradient(160deg, #0b2447 0%, #123a6b 55%, #1a3a6b 100%);
}

/* Logo varyantları: açık = 31+38, koyu = 37+30 (ASSETS trimli kopyalar) */
.auth-logo { height: auto; filter: drop-shadow(0 4px 14px rgba(11, 36, 71, .16)); }
html.uk-karanlik .auth-logo { filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.auth-logo-koyu { display: none; }
html.uk-karanlik .auth-logo-acik { display: none; }
html.uk-karanlik .auth-logo-koyu { display: block; }
.auth-logo-turksan { width: 240px; }
.auth-logo-lockup { width: 252px; }
.auth-marka-logolar { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* ── Sabit dil + tema kümesi (navbar yok, sağ üst) ────────────────────── */
body .uk-tema-btn-sabit { top: 16px; right: 16px; }
body .uk-dil-btn-sabit { top: 16px; right: 64px; }
body .uk-tema-btn, body .uk-dil-btn {
  background: #ffffff; border-color: #d7dee8; color: #33415c;
  box-shadow: 0 4px 14px rgba(11, 36, 71, .14);
}
body .uk-tema-btn:hover, body .uk-dil-btn:hover {
  background: #f6f8fb; border-color: rgba(201, 168, 76, .75); color: #0b2447;
}
html.uk-karanlik body .uk-tema-btn, html.uk-karanlik body .uk-dil-btn {
  background: #16294a; border-color: #2c4066; color: #e6edf7;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
html.uk-karanlik body .uk-tema-btn:hover, html.uk-karanlik body .uk-dil-btn:hover {
  background: #1d3357; border-color: rgba(201, 168, 76, .7); color: #f0d47a;
}

/* ── Sağ form tarafı ──────────────────────────────────────────────────── */
.auth-form-taraf {
  padding: 48px 56px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-taraf > * { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }

.auth-baslik { margin-bottom: 26px; }
.auth-baslik-ad { font-size: 1.45rem; font-weight: 800; color: #0b2447; margin: 0; }
.auth-baslik-alt { font-size: .88rem; color: #64748b; margin: 6px 0 0; }
.auth-baslik-cizgi {
  width: 44px; height: 3px; border-radius: 2px; margin-top: 14px;
  background: linear-gradient(90deg, #C9A84C, #f0d47a);
}
html.uk-karanlik .auth-baslik-ad { color: #e6edf7; }
html.uk-karanlik .auth-baslik-alt { color: #9db1cf; }

.auth-alanlar { display: grid; gap: 16px; }
.auth-satir { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-satir > * { min-width: 0; }

.auth-form-taraf .form-label {
  display: flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .84rem; color: #33415c; margin-bottom: 8px;
}
.auth-form-taraf .form-label i { color: #007a94; font-size: .95rem; }
html.uk-karanlik .auth-form-taraf .form-label { color: #c7d4e8; }
html.uk-karanlik .auth-form-taraf .form-label i { color: #4cc9e8; }

.required-indicator { color: #ef4444; font-weight: 700; }

.auth-form-taraf .form-control {
  width: 100%;
  border: 1.5px solid #d7dee8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .92rem;
  font-family: inherit;
  background: #fbfcfe;
  color: #1f2a3d;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-form-taraf .form-control:hover { border-color: #b9c6d6; }
.auth-form-taraf .form-control:focus {
  border-color: #009DBE;
  box-shadow: 0 0 0 3px rgba(0, 157, 190, .14);
  background: #ffffff;
  outline: none;
}
.auth-form-taraf .form-control::placeholder { color: #9aa8ba; }
.auth-form-taraf .form-control:disabled { background: #eef1f6; color: #9aa8ba; cursor: not-allowed; }
.auth-form-taraf .form-control.is-invalid { border-color: #ef4444; }
.auth-form-taraf .form-control.is-valid { border-color: #10b981; }

html.uk-karanlik .auth-form-taraf .form-control {
  background: #0e1c33; border-color: #2c4066; color: #e6edf7;
}
html.uk-karanlik .auth-form-taraf .form-control:hover { border-color: #3d5580; }
html.uk-karanlik .auth-form-taraf .form-control:focus {
  border-color: #00b4d8; box-shadow: 0 0 0 3px rgba(0, 180, 216, .18); background: #0e1c33;
}
html.uk-karanlik .auth-form-taraf .form-control::placeholder { color: #6b7f9e; }
html.uk-karanlik .auth-form-taraf .form-control:disabled { background: #1d3357; color: #6b7f9e; }

.auth-yardim {
  display: flex; justify-content: space-between; align-items: center;
  margin: 18px 0;
}
.auth-form-taraf .form-check { display: flex; align-items: center; gap: 8px; padding-left: 0; margin: 0; }
.auth-form-taraf .form-check-input {
  width: 18px; height: 18px; margin: 0; flex-shrink: 0; cursor: pointer;
  border: 1.5px solid #cbd5e0; border-radius: 5px; accent-color: #0b2447;
}
.auth-form-taraf .form-check-input:checked { background-color: #0b2447; border-color: #0b2447; }
.auth-form-taraf .form-check-input:focus { box-shadow: 0 0 0 3px rgba(0, 157, 190, .16); border-color: #009DBE; }
.auth-form-taraf .form-check-label { font-size: .84rem; color: #5a6c7d; cursor: pointer; }
html.uk-karanlik .auth-form-taraf .form-check-input { border-color: #3d5580; background-color: #0e1c33; accent-color: #00b4d8; }
html.uk-karanlik .auth-form-taraf .form-check-input:checked { background-color: #009DBE; border-color: #009DBE; }
html.uk-karanlik .auth-form-taraf .form-check-label { color: #9db1cf; }

.auth-link { color: #007a94; font-weight: 600; font-size: .85rem; text-decoration: none; }
.auth-link:hover { color: #009DBE; text-decoration: underline; }
html.uk-karanlik .auth-link { color: #4cc9e8; }
html.uk-karanlik .auth-link:hover { color: #7fdcf2; }

/* ── Ana buton ────────────────────────────────────────────────────────── */
.auth-form-taraf .tursan-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border: none; border-radius: 10px;
  background: linear-gradient(135deg, #0b2447 0%, #19376d 100%);
  color: #ffffff;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  box-shadow: 0 6px 16px rgba(11, 36, 71, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  margin-top: 6px;
}
.auth-form-taraf .tursan-btn:hover {
  background: linear-gradient(135deg, #19376d 0%, #0b2447 100%);
  box-shadow: 0 9px 22px rgba(11, 36, 71, .3);
  transform: translateY(-1px);
  color: #ffffff;
}
.auth-form-taraf .tursan-btn:active { transform: translateY(0); }
.auth-form-taraf .tursan-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.auth-form-taraf .tursan-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201, 168, 76, .45); }
html.uk-karanlik .auth-form-taraf .tursan-btn {
  background: linear-gradient(135deg, #1a3a6b 0%, #2c4a7c 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
html.uk-karanlik .auth-form-taraf .tursan-btn:hover {
  background: linear-gradient(135deg, #2c4a7c 0%, #1a3a6b 100%);
  box-shadow: 0 9px 22px rgba(0, 0, 0, .45);
}

/* ── Rol seçimi (register) ────────────────────────────────────────────── */
.auth-rol-secim {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  border: 0; padding: 0; margin: 0 0 20px;
}
.auth-rol { position: relative; }
.auth-rol-input { position: absolute; opacity: 0; pointer-events: none; }
.auth-rol-kart {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid #d7dee8; border-radius: 12px;
  background: #fbfcfe;
  font-weight: 600; font-size: .85rem; color: #33415c;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-rol-kart i { font-size: 1.15rem; color: #64748b; }
.auth-rol-kart:hover { border-color: #b9c6d6; }
.auth-rol-input:checked + .auth-rol-kart {
  border-color: #0b2447;
  background: rgba(11, 36, 71, .06);
  color: #0b2447;
  box-shadow: 0 0 0 3px rgba(11, 36, 71, .08);
}
.auth-rol-input:checked + .auth-rol-kart i { color: #C9A84C; }
.auth-rol-input:focus-visible + .auth-rol-kart { outline: 2px solid #009DBE; outline-offset: 2px; }
html.uk-karanlik .auth-rol-kart { background: #0e1c33; border-color: #2c4066; color: #c7d4e8; }
html.uk-karanlik .auth-rol-kart i { color: #9db1cf; }
html.uk-karanlik .auth-rol-input:checked + .auth-rol-kart {
  border-color: #C9A84C; background: rgba(201, 168, 76, .1); color: #f0d47a;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}
html.uk-karanlik .auth-rol-input:checked + .auth-rol-kart i { color: #f0d47a; }

/* ── Onay kutuları (register) ─────────────────────────────────────────── */
.auth-onay-grup {
  display: grid; gap: 11px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
  margin-top: 20px;
}
html.uk-karanlik .auth-onay-grup { border-color: #2c4066; background: #1d3357; }
.auth-onay-grup .form-check-label { font-size: .8rem; line-height: 1.45; }

/* ── Şifre gücü ───────────────────────────────────────────────────────── */
.password-strength-bar, .auth-guc .progress {
  height: 8px; border-radius: 99px; background: #e6ebf2; overflow: hidden; margin-top: 10px;
}
html.uk-karanlik .password-strength-bar, html.uk-karanlik .auth-guc .progress { background: #0e1c33; }
.auth-form-taraf .progress-bar { transition: width .25s ease; }

.auth-guc-etiket {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .74rem; color: #64748b; margin: 12px 0 0;
}
html.uk-karanlik .auth-guc-etiket { color: #9db1cf; }
.auth-guc-rozet {
  font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #33415c;
}
html.uk-karanlik .auth-guc-rozet { border-color: #2c4066; background: #1d3357; color: #c7d4e8; }

.auth-guc-liste {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; gap: 5px;
  font-size: .76rem; color: #64748b;
}
.auth-guc-liste li { display: flex; align-items: center; gap: 8px; }
.auth-guc-liste i { font-size: .85rem; }
.auth-guc-liste .ok { color: #10b981; }
.auth-guc-liste .bad { color: #9aa8ba; }
html.uk-karanlik .auth-guc-liste { color: #9db1cf; }
html.uk-karanlik .auth-guc-liste .ok { color: #34d399; }
html.uk-karanlik .auth-guc-liste .bad { color: #6b7f9e; }

.auth-sifre-wrap { position: relative; }
.auth-sifre-wrap .form-control { padding-right: 44px; }
.auth-sifre-goz {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; padding: 7px; cursor: pointer;
  color: #64748b; line-height: 0; border-radius: 8px;
}
.auth-sifre-goz:hover { color: #0b2447; background: rgba(11, 36, 71, .06); }
html.uk-karanlik .auth-sifre-goz { color: #9db1cf; }
html.uk-karanlik .auth-sifre-goz:hover { color: #e6edf7; background: rgba(255, 255, 255, .06); }

.password-match-error {
  display: none; align-items: center; gap: 7px;
  color: #dc2626; font-size: .78rem; font-weight: 600; margin-top: 8px;
}
html.uk-karanlik .password-match-error { color: #fca5a5; }

.auth-kucuk-not { font-size: .75rem; color: #64748b; margin-top: 10px; display: flex; align-items: center; gap: 6px; }
html.uk-karanlik .auth-kucuk-not { color: #9db1cf; }

/* ── Uyarı kutuları ───────────────────────────────────────────────────── */
#registerMessage { display: none; }
.auth-form-taraf .alert {
  display: flex; align-items: center; gap: 9px;
  border: 0; border-left: 4px solid transparent; border-radius: 10px;
  padding: 12px 14px; margin: 0 0 14px;
  font-size: .85rem; font-weight: 500;
}
.auth-form-taraf .alert-danger { background: #fdecec; color: #b91c1c; border-left-color: #ef4444; }
.auth-form-taraf .alert-success { background: #e5f7ee; color: #0f7a4d; border-left-color: #10b981; }
html.uk-karanlik .auth-form-taraf .alert-danger { background: rgba(239, 68, 68, .13); color: #fca5a5; }
html.uk-karanlik .auth-form-taraf .alert-success { background: rgba(16, 185, 129, .13); color: #6ee7b7; }

/* ── Form altı ────────────────────────────────────────────────────────── */
.auth-form-alt {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid #e8edf3;
  text-align: center; font-size: .87rem; color: #64748b;
  background: transparent;
}
.auth-form-alt p { margin: 0; }
html.uk-karanlik .auth-form-alt { border-top-color: #2c4066; color: #9db1cf; }

.spin { animation: authSpin 1s linear infinite; }
@keyframes authSpin { 100% { transform: rotate(360deg); } }

/* ── JS ile enjekte edilen OTP / şifre-sıfırlama modalları (koyu tema) ── */
html.uk-karanlik #mailOtpModal > div,
html.uk-karanlik #forgotPasswordModal > div {
  background: #16294a !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55) !important;
}
html.uk-karanlik #mailOtpModal h5,
html.uk-karanlik #forgotPasswordModal h4 { color: #e6edf7 !important; }
html.uk-karanlik #mailOtpModal p,
html.uk-karanlik #forgotPasswordModal p { color: #9db1cf !important; }
html.uk-karanlik #mailOtpModal p strong { color: #f0d47a !important; }
html.uk-karanlik #mailOtpInput,
html.uk-karanlik #resetEmailInput {
  background: #0e1c33 !important; border-color: #2c4066 !important; color: #e6edf7 !important;
}
html.uk-karanlik #mailOtpHata { background: rgba(239, 68, 68, .14) !important; color: #fca5a5 !important; }
html.uk-karanlik #mailOtpTekrarBtn { border-color: #2c4066 !important; color: #9db1cf !important; }
html.uk-karanlik #forgotPasswordModal label { color: #c7d4e8 !important; }
html.uk-karanlik #cancelResetBtn { background: #2c4066 !important; }
#mailOtpInput:focus, #resetEmailInput:focus {
  border-color: #009DBE !important;
  box-shadow: 0 0 0 3px rgba(0, 157, 190, .16);
  outline: none;
}

/* ── Mobil ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-marka { padding: 26px 26px 22px; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  html.uk-karanlik .auth-marka { border-bottom-color: #2c4066; }
  .auth-logo-turksan { width: 160px; }
  .auth-logo-lockup { width: 168px; }
  .auth-marka-logolar { gap: 10px; }
  .auth-form-taraf { padding: 28px 24px; justify-content: flex-start; }
}

@media (max-width: 575px) {
  body .uk-tema-btn-sabit { top: 12px; right: 12px; }
  body .uk-dil-btn-sabit { top: 12px; right: 58px; }
  .auth-form-taraf { padding: 24px 18px; }
  .auth-satir { grid-template-columns: 1fr; }
  .auth-baslik-ad { font-size: 1.25rem; }
  .auth-rol-kart { font-size: .8rem; padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-wrap, .auth-form-taraf .tursan-btn, .auth-form-taraf .form-control { animation: none; transition: none; }
}