/* app/static/css/login_page/form.css_1.2 */

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* FORM CONTROL (DÜZELTİLDİ) */
.input-group .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  box-sizing: border-box;

  background-color: var(--input-bg);
  color: var(--text-primary);

  /* HATA DÜZELTİLDİ: Statik renk yerine dinamik değişken */
  border: 1px solid var(--border-color);

  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* FOCUS DURUMU */
.input-group .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--focus-ring-color);
}

/* HATA MESAJLARI */
.form-error {
  color: #e57373;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* BENİ HATIRLA */
.remember-me-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ALT METİN */
.bottom-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.bottom-text a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.bottom-text a:hover {
  text-decoration: underline;
  color: var(--sidebar-accent-hover);
}

/* PLACEHOLDER RENKLERİ */
.input-group .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
/* ============================== */
/* 4. Checkbox ve Radio Stilleri   */
/* ============================== */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--sidebar-accent); /* Altın ton (tema uyumlu) */
  cursor: pointer;
  transition: accent-color 0.25s ease;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  accent-color: var(--sidebar-accent-hover); /* Hover’da daha açık ton */
}
/* =========================================== */
/* 5. Otomatik Doldurma (Autofill) Renk Düzeltme */
/* =========================================== */

/* Chrome, Edge, Opera (Webkit tabanlı tarayıcılar) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important; /* Arka planı temadan alır */
  -webkit-text-fill-color: var(
    --text-primary
  ) !important; /* Yazı rengini düzeltir */
  caret-color: var(--text-primary) !important; /* İmleç rengi uyumlu */
  transition: background-color 9999s ease-out, color 9999s ease-out; /* Blink animasyonunu gizler */
}

/* Firefox için */
input:autofill {
  background-color: var(--input-bg) !important;
  color: var(--text-primary) !important;
}
