/* ── Self-hosted fonts — FOUT/FOIT yok, Google Fonts bağımlılığı yok ──────── */
/* font-display: block → metin ~50ms görünmez, sonra doğru font anında gelir.  */
/* Aynı domain'den serve edilir → Cloudflare cache, DNS lookup yok.            */

/* Cormorant Garamond 300 normal */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: block;
  src: url('/fonts/CormorantGaramond-300-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: block;
  src: url('/fonts/CormorantGaramond-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Cormorant Garamond 300 italic */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: block;
  src: url('/fonts/CormorantGaramond-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: block;
  src: url('/fonts/CormorantGaramond-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Cormorant Garamond 400 normal */
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/fonts/CormorantGaramond-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/fonts/CormorantGaramond-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* IBM Plex Sans 300 normal */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: block;
  src: url('/fonts/IBMPlexSans-300-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: block;
  src: url('/fonts/IBMPlexSans-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Sans 300 italic */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; font-display: block;
  src: url('/fonts/IBMPlexSans-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: italic; font-weight: 300; font-display: block;
  src: url('/fonts/IBMPlexSans-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Sans 400 normal */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/fonts/IBMPlexSans-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: block;
  src: url('/fonts/IBMPlexSans-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Sans 500 normal */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: block;
  src: url('/fonts/IBMPlexSans-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: block;
  src: url('/fonts/IBMPlexSans-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
button { font-family: inherit; }

/* ── Login Layout ──────────────────────────────────────────────── */
.login-wrap {
  --ink:           #1A1A18;
  --paper:         #F5F2EB;
  --muted:         #6B6860;
  --field-bg:      #FBFAF6;
  --field-border:  rgba(26,26,24,.16);
  --red:           #DC2626;
  --ease:          cubic-bezier(.2,0,0,1);
  --brand-primary: #3457D5;
  --brand-dark:    #18286A;

  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* ── Sol panel ─────────────────────────────────────────────────── */
.panel-left {
  position: relative;
  overflow: hidden;
  background: var(--brand-dark);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

/* Orbs */
.orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb  { position: absolute; aspect-ratio: 1; border-radius: 50%; }
.orb1 {
  width: 76%;
  background: radial-gradient(circle, rgba(75,108,228,.54) 0%, transparent 68%);
  top: 0; left: 0;
  animation: orb1 14s ease-in-out infinite;
}
.orb2 {
  width: 60%;
  background: radial-gradient(circle, rgba(40,80,195,.44) 0%, transparent 65%);
  bottom: 0; right: 0;
  animation: orb2 19s ease-in-out infinite;
}
.orb3 {
  width: 42%;
  background: radial-gradient(circle, rgba(105,145,238,.26) 0%, transparent 60%);
  top: 22%; right: 8%;
  animation: orb3 24s ease-in-out infinite;
}
.vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(10,16,54,.48) 100%);
}
@keyframes orb1 {
  0%   { transform: translate(-15%,-15%) scale(1.05) }
  35%  { transform: translate(25%,-8%)   scale(.92)  }
  65%  { transform: translate(8%, 30%)   scale(1.08) }
  100% { transform: translate(-15%,-15%) scale(1.05) }
}
@keyframes orb2 {
  0%   { transform: translate(55%, 55%)  scale(.88)  }
  38%  { transform: translate(-8%, 48%)  scale(1.06) }
  72%  { transform: translate(48%,-18%)  scale(.94)  }
  100% { transform: translate(55%, 55%)  scale(.88)  }
}
@keyframes orb3 {
  0%   { transform: translate(30%,10%) scale(.80) }
  45%  { transform: translate(5%, 55%) scale(1.0) }
  80%  { transform: translate(60%,35%) scale(.85) }
  100% { transform: translate(30%,10%) scale(.80) }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none } }

/* Org logo card — sadece logo gösterir, metin yok */
.org-logo {
  position: relative;
  align-self: flex-start;
  background: rgba(255,255,255,.96);
  border-radius: 9px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px; min-height: 48px;
}
.org-logo-img {
  display: block;
  max-height: 36px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.org-logo-initials {
  height: 36px; padding: 0 12px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600; font-size: 16px; letter-spacing: .08em; color: #fff;
}

/* Hero text */
.panel-hero { position: relative; }
.panel-hero h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-size: 52px; line-height: 1.12;
  letter-spacing: .01em; color: #fff; margin: 0;
}
.hero-rule { width: 40px; height: 1px; background: rgba(255,255,255,.28); margin: 26px 0 18px; }
.panel-hero p { font-weight: 300; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.58); max-width: 300px; margin: 0; }

/* Footer */
.panel-foot {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  font-weight: 300; font-size: 11px; letter-spacing: .04em;
  color: rgba(255,255,255,.34);
}
.panel-foot i { font-size: 16px; }

/* ── Sağ panel ─────────────────────────────────────────────────── */
.panel-right {
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 56px;
}
.login-form { width: 100%; max-width: 400px; }

.login-form h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400; font-size: 42px; line-height: 1.05;
  color: var(--ink); margin: 0 0 8px;
}
.form-sub { font-weight: 300; font-size: 14px; color: var(--muted); margin: 0 0 34px; }

/* Fields */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 400; font-size: 11px;
  letter-spacing: .1em; color: var(--muted); margin-bottom: 9px;
}
.field input {
  width: 100%; height: 52px; padding: 0 16px;
  font-family: inherit; font-size: 15px; font-weight: 300; color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border); border-radius: 10px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder { color: #A9A69C; }
.field input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}
.field.has-error input { border-color: var(--red); }
.field-error { display: block; font-size: 12px; color: var(--red); margin-top: 6px; }

/* Password input with eye toggle */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 48px; }
.eye-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; padding: 4px; border-radius: 4px;
}
.eye-btn i { font-size: 20px; }
.eye-btn:hover { color: var(--ink); }

/* Alert */
.alert-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  color: var(--red); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}

/* Submit button */
.btn-submit {
  width: 100%; height: 54px; margin-top: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 500; font-size: 14px; letter-spacing: .02em;
  color: #fff; background: var(--brand-primary);
  border: 0; border-radius: 10px; cursor: pointer;
  transition: filter .15s var(--ease), transform .12s var(--ease);
}
.btn-inner {
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-submit i { font-size: 19px; line-height: 1; }
.btn-submit:hover:not(:disabled) { filter: brightness(1.07); }
.btn-submit:active:not(:disabled) { transform: scale(.99); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Beni hatırla */
.remember-row {
  margin: -4px 0 18px;
}
.remember-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 300; color: var(--muted);
  cursor: pointer; user-select: none;
}
.remember-cb {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg) } }
.spin { display: inline-block; animation: spin .8s linear infinite; }

/* Form links */
.form-links { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.form-links a { font-size: 13px; text-decoration: none; }
.link-muted { font-weight: 300; color: var(--muted); }
.link-muted:hover { color: var(--ink); }
.link-org { font-weight: 400; color: var(--brand-primary); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .login-wrap { grid-template-columns: 1fr; }
  .panel-left { padding: 40px 34px; gap: 44px; min-height: 280px; justify-content: flex-start; }
  .panel-left .panel-foot { display: none; }
  .panel-hero h2 { font-size: 36px; }
  .panel-right { padding: 44px 32px; align-items: flex-start; }
}
