/* ------------------------------------------------------------------
   Sample Park Rezidans — Site Yönetim Portalı
   ------------------------------------------------------------------ */

:root {
  --green-900: #16382c;
  --green-700: #24503f;
  --green-500: #3c7a62;
  --gold-500: #c8a45c;
  --gold-300: #e2c88f;

  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-alt: #f0ede5;
  --border: #e0dcd1;
  --text: #1c2420;
  --text-muted: #6b736d;
  --danger: #a8452f;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 56, 44, .06), 0 8px 24px rgba(22, 56, 44, .07);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101613;
    --surface: #18211d;
    --surface-alt: #1f2a25;
    --border: #2b3833;
    --text: #e9e7e1;
    --text-muted: #97a09a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; margin: 0; }

a { color: var(--green-500); }

/* ---------- Demo banner ------------------------------------------- */

.demo-banner {
  background: var(--gold-500);
  color: #2a2109;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  padding: .5rem 1rem;
}

/* ---------- Login layout ------------------------------------------ */

body.page-auth { min-height: 100vh; display: flex; flex-direction: column; }

.auth {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .auth { grid-template-columns: 1.1fr 1fr; }
}

.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 2.5rem;
  color: #f2efe7;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(200, 164, 92, .22), transparent 60%),
    linear-gradient(155deg, var(--green-900), var(--green-700) 55%, #1b4235);
  overflow: hidden;
}

.auth__brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% 40%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent);
  pointer-events: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: .01em;
}

.brand-mark__glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(226, 200, 143, .5);
  border-radius: 50%;
  color: var(--gold-300);
  font-size: .9rem;
  letter-spacing: .06em;
}

.auth__pitch { position: relative; max-width: 30ch; }

.auth__pitch h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.auth__pitch p {
  color: rgba(242, 239, 231, .78);
  margin: 0;
}

.auth__facts {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  font-size: .875rem;
}

.auth__facts dt { color: var(--gold-300); letter-spacing: .06em; text-transform: uppercase; font-size: .6875rem; }
.auth__facts dd { margin: .25rem 0 0; font-size: 1.125rem; font-family: var(--font-serif); }

.auth__panel {
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
}

.login-card { width: 100%; max-width: 380px; }

.login-card__head { margin-bottom: 2rem; }
.login-card__head h2 { font-size: 1.5rem; }
.login-card__head p { color: var(--text-muted); font-size: .9375rem; margin: .5rem 0 0; }

/* ---------- Forms -------------------------------------------------- */

.field { margin-bottom: 1.125rem; }

.field label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .375rem;
}

.field input {
  width: 100%;
  padding: .75rem .875rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(60, 122, 98, .18);
}

.btn {
  width: 100%;
  padding: .8125rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #f4f1ea;
  background: var(--green-700);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, transform .05s;
}

.btn:hover { background: var(--green-900); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }

.form-error {
  display: none;
  margin: 0 0 1rem;
  padding: .625rem .75rem;
  font-size: .875rem;
  color: var(--danger);
  background: rgba(168, 69, 47, .08);
  border: 1px solid rgba(168, 69, 47, .25);
  border-radius: var(--radius);
}

.form-error.is-visible { display: block; }

.demo-hint {
  margin-top: 1.5rem;
  padding: .875rem 1rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius);
}

.demo-hint code {
  font-size: .8125rem;
  color: var(--text);
  background: var(--surface);
  padding: .0625rem .3125rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---------- Panel -------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--green-900);
  color: #f2efe7;
}

.topbar .brand-mark { font-size: 1.0625rem; }

.topbar__user { display: flex; align-items: center; gap: 1rem; font-size: .875rem; }

.linkbtn {
  font: inherit;
  font-size: .875rem;
  color: rgba(242, 239, 231, .8);
  background: none;
  border: 1px solid rgba(242, 239, 231, .25);
  border-radius: 6px;
  padding: .3125rem .75rem;
  cursor: pointer;
}

.linkbtn:hover { color: #fff; border-color: rgba(242, 239, 231, .6); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 1.75rem; }
.page-head p { color: var(--text-muted); margin: .375rem 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  padding: 1.25rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card__label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card__value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-top: .375rem;
}

.card__value.is-due { color: var(--danger); }
.card__note { font-size: .8125rem; color: var(--text-muted); margin-top: .25rem; }

.section { margin-bottom: 2.5rem; }
.section > h2 { font-size: 1.1875rem; margin-bottom: .875rem; }

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

table { width: 100%; border-collapse: collapse; font-size: .9375rem; }

th, td { padding: .8125rem 1.125rem; text-align: left; white-space: nowrap; }

th {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

tbody tr + tr td { border-top: 1px solid var(--border); }

td.num { text-align: right; font-variant-numeric: tabular-nums; }

.tag {
  display: inline-block;
  padding: .1875rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 999px;
}

.tag--paid { color: #1f6147; background: rgba(60, 122, 98, .14); }
.tag--due { color: var(--danger); background: rgba(168, 69, 47, .12); }

@media (prefers-color-scheme: dark) {
  .tag--paid { color: #7fc4a6; background: rgba(60, 122, 98, .22); }
  .tag--due { color: #e59280; background: rgba(168, 69, 47, .24); }
  .card__value.is-due { color: #e59280; }
}

.notice-list { display: grid; gap: .75rem; }

.notice {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
}

.notice h3 { font-size: 1rem; }
.notice time { font-size: .75rem; color: var(--text-muted); }
.notice p { margin: .375rem 0 0; font-size: .9375rem; color: var(--text-muted); }

.footnote {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-muted);
}
