/* ===========================================================================
   tema2 — Firma giriş sayfası (açık renk, ortalanmış kart)
   Tek sayfalık tema: yalnızca public/site/tema2/login.php tarafından kullanılır.
   Bootstrap'e bağımlı değildir, tüm bileşenler burada tanımlıdır.
   =========================================================================== */

:root {
  --t2-bg: #eef0f4;
  --t2-card: #ffffff;
  --t2-text: #1b1f27;
  --t2-muted: #6b7280;
  --t2-line: #e5e7eb;
  --t2-field: #f6f7f9;
  --t2-accent: #C8102E;          /* mevcut marka kırmızısı */
  --t2-radius: 16px;
}

* { box-sizing: border-box; }

.t2-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--t2-text);
  /* Düz gri yerine çok hafif renkli bir zemin — kart üzerinde durduğu belli olsun. */
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(200, 16, 46, 0.06), transparent 60%),
    radial-gradient(800px 600px at 100% 110%, rgba(37, 99, 235, 0.06), transparent 60%),
    var(--t2-bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Yerleşim ----------------------------------------------------------- */
.t2-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.t2-card {
  width: 100%;
  max-width: 430px;
  padding: 38px 36px 28px;
  background: var(--t2-card);
  border: 1px solid var(--t2-line);
  border-radius: var(--t2-radius);
  box-shadow: 0 18px 44px rgba(23, 30, 46, 0.08);
}

/* --- Başlık (ortalanmış) ------------------------------------------------ */
.t2-brand {
  display: block;
  margin: 0 auto 22px;
  max-height: 44px;
  width: auto;
}

.t2-card h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.t2-lead {
  margin: 0 0 30px;
  text-align: center;
  color: var(--t2-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.t2-lead :is(p, a, span) { color: inherit; }
.t2-lead p:last-child { margin-bottom: 0; }

/* --- Form alanları ------------------------------------------------------ */
.t2-field { margin-bottom: 18px; }

.t2-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #4b5563;
}

.t2-input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--t2-text);
  background: var(--t2-field);
  border: 1px solid var(--t2-line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.t2-input::placeholder { color: #9ca3af; }

.t2-input:focus {
  background: #fff;
  border-color: rgba(200, 16, 46, 0.55);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

/* Sayı alanındaki artır/azalt oklarını gizle (firma kodu) */
.t2-input[type='number']::-webkit-outer-spin-button,
.t2-input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.t2-input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

/* Şifre göster/gizle */
.t2-pass { position: relative; }
.t2-pass .t2-input { padding-right: 48px; }

.t2-pass-toggle {
  position: absolute;
  right: 6px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.t2-pass-toggle:hover { color: var(--t2-text); background: rgba(0, 0, 0, 0.04); }

/* --- Hatırla / şifremi unuttum ------------------------------------------ */
.t2-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 22px;
  font-size: 0.86rem;
}

.t2-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.t2-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--t2-accent);
  cursor: pointer;
}

.t2-forgot {
  color: var(--t2-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.t2-forgot:hover { color: var(--t2-accent); }

/* --- Buton -------------------------------------------------------------- */
.t2-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #d81232 0%, var(--t2-accent) 100%);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
  transition: filter 0.15s, box-shadow 0.2s, transform 0.15s;
}

.t2-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 26px rgba(200, 16, 46, 0.32); }
.t2-btn:active { transform: translateY(1px); }
.t2-btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }

/* --- Uyarı kutusu (giriş kapalı) ---------------------------------------- */
.t2-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 14px 15px;
  font-size: 0.89rem;
  line-height: 1.5;
  color: #92620a;
  background: #fff8ea;
  border: 1px solid #f3e0b6;
  border-radius: 12px;
}
.t2-alert svg { flex: none; margin-top: 2px; }

/* --- Alt bilgi ---------------------------------------------------------- */
.t2-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* --- Duyarlılık --------------------------------------------------------- */
@media (max-width: 460px) {
  .t2-shell { padding: 24px 16px; }
  .t2-card { padding: 30px 22px 24px; border-radius: 14px; }
  .t2-card h1 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .t2-btn, .t2-input, .t2-pass-toggle, .t2-forgot { transition: none; }
}
