/* Kimlik sağlayıcı sayfaları: frontend-react giriş ekranının görünümü (solda marka kapağı, sağda form).
   Font kendi sunucumuzdan (KVKK: Google Fonts CDN kullanılmaz). */

@font-face {
  font-family: 'IBM Plex Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  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 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/fonts/ibm-plex-sans-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #2f7cbf;
  --primary-foreground: #ffffff;
  --primary-soft: #e8f1f9;
  --destructive: #dc2626;
  --destructive-soft: #fef2f2;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --radius: 0.5rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted: #171717;
    --muted-foreground: #a3a3a3;
    --border: #262626;
    --primary: #4b9ad8;
    --primary-foreground: #0a0a0a;
    --primary-soft: #11273a;
    --destructive: #f87171;
    --destructive-soft: #2a1212;
    --success: #4ade80;
    --success-soft: #0f2416;
    color-scheme: dark;
  }
  .logo-light { display: none; }
  .logo-dark { display: inline-block !important; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: 'IBM Plex Sans Variable', 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.auth { display: flex; min-height: 100vh; }

.auth-cover {
  position: sticky;
  top: 0;
  flex: 1.1;
  height: 100vh;
  overflow: hidden;
  background: var(--primary);
}
.auth-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-cover .brand-card {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  display: inline-block;
  max-width: 28rem;
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.15);
}
.brand-card .app-name { margin: 12px 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-card .tagline { margin: 4px 0 0; font-size: 0.875rem; color: var(--muted-foreground); }

.logo { height: 28px; width: auto; }
.logo-dark { display: none; }

.auth-main { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 20px 40px; }
.auth-body { display: flex; flex: 1; align-items: center; justify-content: center; padding: 40px 0; }
.auth-panel { width: 100%; max-width: 24rem; }
.mobile-brand { display: none; margin-bottom: 32px; }
.mobile-brand .app-name { margin: 12px 0 0; font-size: 1.125rem; font-weight: 600; }

@media (max-width: 1023px) {
  .auth-cover { display: none; }
  .mobile-brand { display: block; }
  .auth-main { padding: 20px 16px; }
}

.eyebrow { margin: 0; font-size: 0.75rem; color: var(--muted-foreground); }
h1 { margin: 4px 0 4px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin: 0 0 24px; font-size: 0.875rem; color: var(--muted-foreground); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; }
.field .hint { margin-top: 6px; font-size: 0.75rem; color: var(--muted-foreground); }
.field input[type='text'],
.field input[type='email'],
.field input[type='password'] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}
.field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.field input.code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; text-align: center; font-size: 1.125rem; }
/* Şifre alanı: sağdaki göz düğmesiyle yazılan şifre gösterilir/gizlenir */
.password-field { position: relative; }
.field .password-field input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}
.password-toggle:hover { color: var(--foreground); }
.password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: var(--radius); }
.password-toggle svg { width: 16px; height: 16px; }
.password-toggle .icon-hide { display: none; }
.password-toggle[aria-pressed='true'] .icon-show { display: none; }
.password-toggle[aria-pressed='true'] .icon-hide { display: block; }

.check { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; font-size: 0.875rem; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.btn {
  display: inline-flex;
  width: 100%;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--foreground); border: 1px solid var(--border); }

.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 0.8125rem; }
.links a, a.link { color: var(--primary); text-decoration: none; }
.links a:hover, a.link:hover { text-decoration: underline; }

.alert { margin-bottom: 16px; padding: 10px 12px; border-radius: var(--radius); font-size: 0.875rem; }
.alert-error { background: var(--destructive-soft); color: var(--destructive); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--primary-soft); color: var(--foreground); }

.methods { display: grid; gap: 8px; margin-bottom: 16px; }
.methods button { justify-content: flex-start; padding: 0 14px; }

/* Kurum seçimi: kurum listesinin üstündeki "Genel mod" seçeneği (başlık + açıklama) */
.general-mode { margin-bottom: 20px; }
.general-mode button {
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-color: var(--primary);
  background: var(--primary-soft);
  text-align: left;
}
.general-mode button span { font-size: 0.8125rem; font-weight: 400; color: var(--muted-foreground); }

.footer-note { margin-top: 32px; font-size: 0.75rem; color: var(--muted-foreground); text-align: center; }

/* Hesabım */
.section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.section h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.section > .hint { margin: 0 0 14px; font-size: 0.8125rem; color: var(--muted-foreground); }
.method { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.method .hint { margin-left: 8px; font-size: 0.8125rem; color: var(--muted-foreground); }
form.inline { display: flex; gap: 8px; }
form.inline input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit; }
form.inline .btn { width: auto; padding-left: 16px; padding-right: 16px; }
.enroll { margin-top: 16px; }
.enroll .qr { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: var(--radius); }
.enroll .qr svg { width: 100%; height: 100%; }
.enroll code { font-size: 0.8125rem; word-break: break-all; }
