/*
  Randevu Admin - Login Sayfası Stilleri
  - Modern ve minimal arayüz
  - Responsive tasarım
  - Erişilebilir odak stilleri
  - Subtle animasyonlar
  - Mavi & Beyaz renk paleti
*/

/* CSS Değişkenleri (Renk Paleti ve Ölçüler) */
:root {
  --blue-50: #f0f7ff;
  --blue-100: #e1effe;
  --blue-300: #7cc0ff;
  --blue-500: #4062FF;
  --blue-600: #4062FF;
  --blue-700: #4062FF;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.12);
  --max-w: 420px;
}

/* Genel Reset ve Tipografi */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page { display: grid; min-height: 100%; grid-template-rows: 1fr auto; }

/* Marka Bloğu */
.brand { text-align: center; margin-bottom: 16px; }
.brand__logo { width: 64px; height: 64px; display: inline-block; }
.brand__title { margin: 8px 0 0; font-weight: 600; font-size: 20px; color: var(--blue-700); }

/* Sayfa Düzeni */
.auth {
  min-height: calc(100vh - 60px);
  padding: 24px 16px;
  display: grid;
  place-items: center;
}

.card {
  width: 100%;
  max-width: var(--max-w);
  border-radius: var(--radius);
  padding: 24px;
  animation: fadeInUp 480ms ease both;
}

.card__header { margin-bottom: 12px; }
.card__title { margin: 0 0 6px; font-size: 24px; font-weight: 600; }
.card__subtitle { margin: 0; color: var(--gray-500); font-size: 14px; }

.form { display: grid; gap: 14px; margin-top: 12px; }
.form__group { display: grid; gap: 6px; }
.form__label { font-size: 14px; color: var(--gray-700); }

.input { position: relative; display: flex; align-items: center; }
.input__icon { position: absolute; left: 12px; color: var(--gray-500); }
.input__field {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 12px 44px 12px 36px;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
  background-color: var(--gray-50);
}
.input__field::placeholder { color: var(--gray-500); }
.input__field:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.15);
  background-color: var(--white);
}

.input__action {
  position: absolute; right: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; border: none; background: transparent;
  color: var(--gray-700); cursor: pointer; transition: background-color 160ms ease, color 160ms ease;
}
.input__action:hover { background: var(--gray-100); color: var(--blue-700); }
.input__action:focus { outline: none; box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.35); }

.form__error { min-height: 18px; margin: 2px 2px 0; color: #b00020; font-size: 12px; }
.form__status { min-height: 20px; margin-top: 4px; color: var(--gray-700); font-size: 13px; }

.form__actions { margin-top: 8px; }
.btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: transform 100ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.btn--primary { background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 8px 28px rgba(31, 111, 224, 0.25); }
.btn--primary:active { transform: translateY(1px); }

.btn__spinner { display: none; }
.btn.is-loading .btn__content { opacity: 0.8; }
.btn.is-loading .btn__spinner { display: inline-flex; }

/* Hata Durumu */
.input__field[aria-invalid="true"] { border-color: #d32f2f; background-color: #fff6f6; }
.input__field[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15); }

/* Footer */
.footer { padding: 16px; text-align: center; }
.footer__text { margin: 0; color: var(--gray-500); font-size: 12px; }

/* Basit giriş animasyonu */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Medya Sorguları */
@media (min-width: 768px) {
  .card { padding: 28px; }
  .card__title { font-size: 26px; }
  .brand__logo { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}