/*
 * OTS Login Sayfası Modern CSS
 * Version: 2.0
 * login.php için bağımsız modernizasyon
 * UYARI: PHP/JS mantığına hiçbir müdahale yoktur.
 */

/* ============================================================
   1. GOOGLE FONTS & RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background-color: #F8FAFC !important;
  color: #1E293B !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ============================================================
   2. BODY & GENEL YAPI
   ============================================================ */
body {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1a2a4a 100%) !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   3. HEADER NAV (gn-container / global-nav)
   ============================================================ */
.gn-container {
  background: rgba(255,255,255,0.04) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.global-nav-oz {
  height: 64px !important;
  display: flex;
  align-items: center;
}

.global-nav-oz .container {
  padding: 0 24px;
}

.gn-logo {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}

.gn-logo a {
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.HdTitle {
  color: rgba(255,255,255,0.5) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

/* ============================================================
   4. CI-TITLE (başlık bandı)
   ============================================================ */
.ci-title {
  background: rgba(255,255,255,0.03) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  padding: 16px 0 !important;
}

.ci-title h3 {
  color: rgba(255,255,255,0.85) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  margin: 0 !important;
  letter-spacing: 0.2px;
}

.ci-title h3 a {
  color: #60a5fa !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.ci-title h3 a:hover {
  color: #93c5fd !important;
}

/* ============================================================
   5. CONSUMER IDENTITY & FORM ALANI
   ============================================================ */
.consumer-identity {
  flex: 1;
}

.consumer-identity > .container {
  padding: 32px 24px !important;
}

/* Alert alanı (lisans uyarısı) */
.consumer-identity .alert {
  border-radius: 10px !important;
  margin-bottom: 20px !important;
  border-left-width: 4px !important;
  font-size: 13px !important;
}

.consumer-identity .alert-danger {
  background: rgba(239,68,68,0.1) !important;
  border-color: #EF4444 !important;
  color: #fca5a5 !important;
}

/* ============================================================
   6. CI-CONTENT WRAPPER (form kartı alanı)
   ============================================================ */
.ci-content-wrapper {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.ci-content-wrapper.Bg {
  background: rgba(255,255,255,0.04) !important;
}

/* ============================================================
   7. FORM TARAFI (sol sütun)
   ============================================================ */
.ci-form {
  background: #FFFFFF !important;
  padding: 36px 32px !important;
  border-radius: 16px 0 0 16px !important;
  position: relative;
  min-height: 320px;
}

.ci-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB, #06B6D4);
  border-radius: 16px 0 0 0;
}

.ci-same-height {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Başlık */
.ci-form h5 {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1E293B !important;
  margin-bottom: 8px !important;
  margin-top: 0 !important;
  letter-spacing: -0.3px;
}

/* Form subtitle */
.ci-form .span5 > h5::after {
  content: 'Sisteme giriş yapın';
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #64748B;
  margin-top: 2px;
}

/* ============================================================
   8. FORM ELEMANLARI (login formu)
   ============================================================ */
.ci-form form {
  margin-top: 8px;
}

/* Label */
.ci-form label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Input group */
.ci-form .input-group {
  margin-bottom: 0;
}

.ci-form .input-group-addon {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-right: 0 !important;
  border-radius: 8px 0 0 8px !important;
  color: #64748B !important;
  padding: 0 14px !important;
  min-width: 44px;
  text-align: center;
}

.ci-form .form-control {
  border: 1px solid #E2E8F0 !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0 !important;
  height: 44px !important;
  font-size: 14px !important;
  color: #1E293B !important;
  padding: 0 14px !important;
  background: #fff !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.ci-form .form-control:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
  outline: none !important;
}

.ci-form .form-control:focus ~ .input-group-addon,
.ci-form .input-group:focus-within .input-group-addon {
  border-color: #2563EB !important;
  color: #2563EB !important;
}

/* span5 div'leri (form bölümleri) */
.ci-form #usernamediv,
.ci-form #userpwddiv {
  margin-bottom: 16px !important;
}

/* ============================================================
   9. GİRİŞ BUTONU
   ============================================================ */
.ci-form #passworddiv {
  padding-top: 12px !important;
}

.ci-form .btn-group-justified {
  display: block !important;
  width: 100% !important;
}

.ci-form .btn.btn-primary {
  width: 100% !important;
  height: 46px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #2563EB, #1d4ed8) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.ci-form .btn.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.45) !important;
  transform: translateY(-1px) !important;
}

.ci-form .btn.btn-primary:active {
  transform: translateY(0) !important;
}

/* Hata mesajı */
p[style*="color:#09C"] {
  background: rgba(239,68,68,0.1) !important;
  border: 1px solid rgba(239,68,68,0.3) !important;
  border-left: 4px solid #EF4444 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #ef4444 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  margin: 8px 0 !important;
}

/* ============================================================
   10. SAĞ TARAF (OTS Nedir)
   ============================================================ */
.ci-side {
  background: linear-gradient(160deg, #1E3A5F 0%, #0F2645 100%) !important;
  padding: 36px 28px !important;
  border-radius: 0 16px 16px 0 !important;
  color: rgba(255,255,255,0.85) !important;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ci-side h5 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 20px !important;
  margin-top: 0 !important;
}

.ci-side .cs-link-su {
  color: rgba(255,255,255,0.5) !important;
  font-size: 12px !important;
  display: block !important;
  margin-bottom: 24px !important;
  text-decoration: none !important;
}

.ci-side .cs-link-su:hover {
  color: #60a5fa !important;
}

/* Info item kartları */
.ci-link-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.ci-link-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.ci-li-image {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ci-li-support .ci-li-image {
  background: linear-gradient(135deg, #2563EB, #06B6D4);
}

.ci-li-updates .ci-li-image {
  background: linear-gradient(135deg, #10B981, #059669);
}

.ci-li-text strong {
  display: block;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ci-li-text p {
  color: rgba(255,255,255,0.55) !important;
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

/* Divider */
.ci-side div[style*="border-bottom"] {
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  margin: 16px 0 !important;
}

/* Footer linkleri */
.ci-side .list-inline {
  margin-top: 12px !important;
  padding: 0 !important;
}

.ci-side .list-inline li {
  padding: 0 !important;
  margin-right: 12px !important;
}

.ci-side .list-inline li a {
  color: rgba(255,255,255,0.4) !important;
  font-size: 11px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.ci-side .list-inline li a:hover {
  color: #60a5fa !important;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.nav-footer-wrapper {
  background: rgba(0,0,0,0.25) !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  padding: 16px 0 !important;
}

.nav-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

.nav-footer-links li {
  font-size: 11px !important;
  color: rgba(255,255,255,0.4) !important;
}

.nav-footer-links li a {
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.nav-footer-links li a:hover {
  color: rgba(255,255,255,0.8) !important;
}

.nav-footer-divider {
  color: rgba(255,255,255,0.15) !important;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .ci-form {
    border-radius: 12px !important;
    padding: 28px 20px !important;
    margin-bottom: 16px !important;
  }

  .ci-side {
    border-radius: 12px !important;
    padding: 24px 20px !important;
    margin-top: 16px !important;
  }

  .consumer-identity > .container {
    padding: 20px 16px !important;
  }

  .ci-content-wrapper {
    border-radius: 12px !important;
  }

  .global-nav-oz {
    height: 52px !important;
  }

  .nav-footer-links {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .ci-form {
    padding: 24px 16px !important;
  }

  .ci-form h5 {
    font-size: 18px !important;
  }

  .ci-title h3 {
    font-size: 13px !important;
  }
}

/* ============================================================
   13. LOADING & FOCUS EFEKT
   ============================================================ */
@keyframes ots-login-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ci-form {
  animation: ots-login-fade 0.35s ease forwards;
}

.ci-side {
  animation: ots-login-fade 0.45s ease forwards;
}

/* ============================================================
   14. BOOTSTRAP UYUMU (login_dosyalari/bootstrap ile uyum)
   ============================================================ */
.col-md-6:first-child > .ci-form.ci-same-height {
  border-right: 1px solid #E2E8F0;
}

/* Bootstrap 3 span sınıfları override */
.span5 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.span8, .span4, .span12 {
  float: none !important;
}

/* ============================================================
   EOF - OTS Login Modern v2.0
   ============================================================ */
