/* ==========================================================================
   Otel365 — Yönetim Paneli Giriş Ekranı
   ========================================================================== */

:root {
  /* Marka renkleri (logodan örneklendi) */
  --navy-900: #052A50;
  --navy-800: #073B6F;
  --navy-700: #004080;
  --navy-600: #0A5099;
  --navy-500: #1668B8;

  --orange-600: #C9621F;
  --orange-500: #E07A28;
  --orange-400: #F2913F;

  --ink-900: #0F172A;
  --ink-700: #334155;
  --ink-500: #64748B;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;

  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --success: #059669;
  --success-bg: #ECFDF5;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 64px rgba(5, 42, 80, .28), 0 2px 8px rgba(5, 42, 80, .12);
  --focus-ring: 0 0 0 3px rgba(22, 104, 184, .28);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   Sayfa zemini
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% 6%,  rgba(22, 104, 184, .55), transparent 62%),
    radial-gradient(900px 560px at 92% 92%, rgba(224, 122, 40, .30), transparent 60%),
    linear-gradient(150deg, #062F5A 0%, #052A50 45%, #041F3D 100%);
}

/* İnce diagonal doku */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, .035) 0px,
    rgba(255, 255, 255, .035) 1px,
    transparent 1px,
    transparent 11px
  );
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Kart
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---- Sol sütun: form ---- */

.card__form {
  padding: 44px 48px 36px;
  display: flex;
  flex-direction: column;
}

.brand {
  margin-bottom: 28px;
}

.brand__logo {
  display: block;
  width: 188px;
  height: auto;
  margin-left: -8px;
}

.form-head {
  margin-bottom: 24px;
}

.form-head__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-800);
}

.form-head__sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-500);
}

/* ---- Alanlar ---- */

.field {
  margin-bottom: 18px;
}

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field__icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--ink-500);
  pointer-events: none;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  appearance: none;
}

.input::placeholder { color: #94A3B8; }

.input:hover { border-color: var(--ink-300); }

.input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--navy-500);
  box-shadow: var(--focus-ring);
}

.input--pass { padding-left: 42px; padding-right: 46px; }

.input[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .20);
}

/* Şifre göster/gizle */
.pass-toggle {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, background-color .15s;
}

.pass-toggle:hover { color: var(--navy-600); background: var(--ink-100); }

.pass-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.pass-toggle svg { width: 18px; height: 18px; }
.pass-toggle .icon-off { display: none; }
.pass-toggle.is-visible .icon-on  { display: none; }
.pass-toggle.is-visible .icon-off { display: block; }

/* ---- Satır: beni hatırla / şifremi unuttum ---- */

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy-600);
  cursor: pointer;
  margin: 0;
}

.link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-600);
  text-decoration: none;
  border-radius: 4px;
}

.link:hover { color: var(--orange-500); text-decoration: underline; }
.link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---- Buton ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--navy-600) 0%, var(--navy-700) 100%);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 64, 128, .28);
  transition: transform .12s, box-shadow .15s, filter .15s;
}

.btn:hover { filter: brightness(1.07); box-shadow: 0 8px 22px rgba(0, 64, 128, .34); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(0, 64, 128, .28); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring), 0 6px 16px rgba(0, 64, 128, .28); }

.btn[disabled], .btn.is-loading {
  cursor: not-allowed;
  filter: saturate(.6) brightness(.95);
}

.btn__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__icon { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.btn__icon { width: 17px; height: 17px; }

/* ---- Uyarı kutuları ---- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.alert--error {
  color: #991B1B;
  background: var(--danger-bg);
  border-color: #FECACA;
}

.alert--info {
  color: #7C3E10;
  background: #FFF7ED;
  border-color: #FED7AA;
}

.alert--success {
  color: #065F46;
  background: var(--success-bg);
  border-color: #A7F3D0;
}

/* ---- Form altı ---- */

.form-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-500);
  border-top: 1px solid var(--ink-200);
}

.form-foot__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-foot__secure svg { width: 14px; height: 14px; color: var(--success); }

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--ink-100);
  border-radius: 8px;
}

.lang a {
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  border-radius: 6px;
}

.lang a.is-active {
  color: var(--navy-700);
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .10);
}

.lang a:hover:not(.is-active) { color: var(--navy-600); }

/* --------------------------------------------------------------------------
   Sağ sütun: marka paneli
   -------------------------------------------------------------------------- */

.card__brand {
  position: relative;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
  background:
    radial-gradient(620px 420px at 82% 12%, rgba(224, 122, 40, .40), transparent 62%),
    linear-gradient(160deg, var(--navy-600) 0%, var(--navy-800) 52%, var(--navy-900) 100%);
}

.card__brand::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 44px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  pointer-events: none;
}

.brand-panel {
  position: relative;
  z-index: 1;
}

.brand-panel__mark {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .30));
}

.brand-panel__title {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.28;
}

.brand-panel__text {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .92);
}

.feature-list svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  padding: 3px;
  color: #FFFFFF;
  background: rgba(224, 122, 40, .92);
  border-radius: 50%;
}

.brand-panel__note {
  margin-top: 30px;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

/* --------------------------------------------------------------------------
   Sayfa altı
   -------------------------------------------------------------------------- */

.page-foot {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .58);
  text-align: center;
}

.page-foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.page-foot a:hover { color: #FFFFFF; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Duyarlı yerleşim
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; max-width: 460px; }
  .card__brand { display: none; }
  .card__form { padding: 36px 30px 28px; }
  .brand__logo { width: 168px; }
}

@media (max-width: 420px) {
  .page { padding: 20px 14px; }
  .card__form { padding: 30px 22px 24px; }
  .brand__logo { width: 150px; }
  .form-head__title { font-size: 20px; }
  .form-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
