/*
 * Giriş yapmamış kullanıcı sayfaları: ana sayfa (home.index), giriş (panel.login), şifremi unuttum (panel.forgot).
 * Düzen bulut12.com giriş ekranından örnek alındı; vurgu rengi ERP12 kırmızısı.
 */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

:root {
  --p-marka: #223d7f;
  --p-marka-koyu: #182d60;
  --p-gece: #111d33;
  --p-kirmizi: #cf1820;
  --p-acik-mavi: #8ed8ff;
  --p-metin: #111d33;
  --p-sis: #5a6577;
  --p-zemin: #f2f6fa;
  --p-cerceve: #dce4ec;
  --p-beyaz: #fff;
  --p-hata: #c0261f;
  --p-basari: #1b7a47;
  --p-kose: 6px;
  --p-kose-kart: 20px;
  --p-golge: 0 24px 70px rgba(6, 48, 79, .12);
  --p-yazi: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--p-zemin);
  color: var(--p-metin);
  font-family: var(--p-yazi);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.portal a { color: var(--p-marka); }
.portal a:hover { color: var(--p-marka-koyu); }
.portal :focus-visible { outline: 3px solid rgba(0, 146, 221, .45); outline-offset: 2px; }
.sadece-okuyucu { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Üst bar */
.p-ust { background: var(--p-beyaz); border-bottom: 1px solid var(--p-cerceve); }
.p-kap { width: min(100% - 32px, 1120px); margin: 0 auto; }
.p-ust .p-kap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.p-marka img { display: block; height: 44px; width: auto; }
.p-ust-bag { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.p-ust-bag a { text-decoration: none; font-weight: 600; color: var(--p-sis); }
.p-ust-bag a:hover { color: var(--p-marka); }
.p-ust-bag .p-btn { color: var(--p-beyaz); }

/* Düğmeler */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--p-kose); border: 1px solid transparent;
  font: 600 15px/1.2 var(--p-yazi); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.p-btn-birincil { background: var(--p-marka); color: var(--p-beyaz) !important; }
.p-btn-birincil:hover { background: var(--p-marka-koyu); }
.p-btn-cizgi { background: transparent; border-color: var(--p-cerceve); color: var(--p-marka) !important; }
.p-btn-cizgi:hover { border-color: var(--p-marka); }
.p-btn-acik { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: var(--p-beyaz) !important; }
.p-btn-acik:hover { background: rgba(255, 255, 255, .16); }
.p-btn-beyaz { background: var(--p-beyaz); color: var(--p-marka) !important; }
.p-btn-beyaz:hover { background: #e8eef6; }
.p-btn-kucuk { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.p-btn-tam { width: 100%; }

/* Ana alan */
.p-ana { flex: 1; display: flex; align-items: center; padding: 40px 0; }
.p-ana > .p-kap { display: flex; justify-content: center; }

/* İki parçalı kart: solda lacivert tanıtım, sağda içerik */
.p-kabuk {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1000px); min-width: 0; min-height: 600px;
  background: var(--p-beyaz); border: 1px solid var(--p-cerceve); border-radius: var(--p-kose-kart);
  box-shadow: var(--p-golge); overflow: hidden;
}
.p-tanitim {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 52px 48px 36px; background: var(--p-gece); color: var(--p-beyaz);
}
.p-tanitim::before { /* hafif ışık */
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 146, 221, .28), rgba(0, 146, 221, 0) 70%); pointer-events: none;
}
.p-tanitim > * { position: relative; }
.p-etiket {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
  color: var(--p-acik-mavi); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.p-etiket::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--p-kirmizi); }
.p-tanitim h2 { margin: 0 0 14px; font-size: clamp(28px, 2.2vw + 14px, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.p-tanitim p { margin: 0; color: #c9d5e2; font-size: 17px; }
.p-isaret { width: 132px; height: auto; margin-top: 28px; opacity: .95; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .25)); }
.p-liste { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.p-liste li { display: flex; gap: 12px; align-items: flex-start; color: #dbe5ef; font-size: 15px; }
.p-liste .fa { flex: none; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(142, 216, 255, .12); color: var(--p-acik-mavi); font-size: 14px; }
.p-liste b { display: block; color: var(--p-beyaz); font-weight: 600; }

/* Sosyal bağlantılar */
.p-sosyal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-sosyal a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 40px; padding: 0 10px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); color: #c9d5e2; text-decoration: none; font-size: 17px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.p-sosyal a:hover { color: var(--p-beyaz); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.p-sosyal a.p-youtube { background: #ff0000; border-color: #ff0000; color: var(--p-beyaz); padding: 0 14px; font-size: 14px; font-weight: 600; }
.p-sosyal a.p-youtube .fa { font-size: 18px; }
.p-sosyal a.p-youtube:hover { background: #d90000; border-color: #d90000; }
.p-sosyal-not { margin: 0 0 10px; color: #8fa1b5; font-size: 13px; }

/* Form tarafı */
.p-kart { display: flex; flex-direction: column; justify-content: center; padding: 54px 58px; }
.p-kart h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.p-kart .p-alt { margin: 0 0 28px; color: var(--p-sis); }
.p-alan { position: relative; margin-bottom: 18px; }
.p-alan label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.p-alan .fa { position: absolute; left: 15px; bottom: 15px; color: #72808d; font-size: 16px; width: 18px; text-align: center; pointer-events: none; }
.p-alan input {
  width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1px solid var(--p-cerceve); border-radius: var(--p-kose);
  background: var(--p-beyaz); color: var(--p-metin); font: 400 16px var(--p-yazi);
  transition: border-color .15s, box-shadow .15s;
}
.p-alan input:hover { border-color: #b9c6d3; }
.p-alan input:focus { outline: none; border-color: var(--p-marka); box-shadow: 0 0 0 3px rgba(34, 61, 127, .15); }
.p-satir { display: flex; justify-content: flex-end; margin: -6px 0 18px; }
.p-satir a { font-size: 14px; font-weight: 600; text-decoration: none; }
.p-ayrac { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--p-sis); font-size: 13px; }
.p-ayrac::before, .p-ayrac::after { content: ""; flex: 1; height: 1px; background: var(--p-cerceve); }
.p-ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-geri { margin: 22px 0 0; text-align: center; font-size: 14px; }
.p-geri a { text-decoration: none; font-weight: 600; }

/* Uyarılar */
.p-uyari { margin-bottom: 20px; padding: 12px 14px; border-radius: var(--p-kose); font-size: 14px; border: 1px solid; }
.p-uyari ul { margin: 4px 0 0; padding-left: 18px; }
.p-uyari-hata { background: #fdf0ef; border-color: #f2c4c1; color: var(--p-hata); }
.p-uyari-basari { background: #edf7f1; border-color: #bfe0cc; color: var(--p-basari); }

/* Ana sayfa */
.p-kabuk-ana { min-height: 560px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.p-kabuk-ana .p-tanitim { justify-content: center; }
.p-kabuk-ana .p-tanitim h2 { font-size: clamp(30px, 2.6vw + 14px, 44px); }
.p-butonlar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.p-kart-ana { align-items: center; text-align: center; padding: 48px 32px; background: linear-gradient(180deg, #fff, #f7f9fc); }
.p-kart-ana .p-buyuk-isaret { width: min(220px, 60%); height: auto; margin-bottom: 26px; }
.p-kart-ana h1 { font-size: 24px; }
.p-kart-ana .p-sosyal a { border-color: var(--p-cerceve); color: var(--p-sis); }
.p-kart-ana .p-sosyal a:hover { color: var(--p-marka); background: var(--p-zemin); border-color: var(--p-marka); }
.p-kart-ana .p-sosyal a.p-youtube { color: var(--p-beyaz); }
.p-kart-ana .p-sosyal { justify-content: center; gap: 8px; }
.p-kart-ana .p-sosyal-not { color: var(--p-sis); }

/* Alt bilgi */
.p-alt-bilgi { padding: 18px 0 24px; color: var(--p-sis); font-size: 13px; text-align: center; }
.p-alt-bilgi a { text-decoration: none; }

@media (max-width: 900px) {
  .p-kabuk, .p-kabuk-ana { grid-template-columns: minmax(0, 1fr); width: min(100%, 560px); min-height: 0; }
  .p-tanitim { padding: 32px 28px; }
  .p-isaret { display: none; }
  .p-kart { padding: 36px 28px 32px; }
  .p-giris .p-liste { display: none; }
}
@media (max-width: 560px) {
  .p-ana { padding: 0; align-items: flex-start; }
  .p-kabuk { align-self: flex-start; }
  .p-tanitim { justify-content: flex-start; gap: 22px; }
  .p-ana > .p-kap { width: 100%; }
  .p-kabuk { border: 0; border-radius: 0; box-shadow: none; }
  .p-tanitim { padding: 26px 16px; }
  .p-kart { padding: 28px 16px; }
  .p-ust-bag .p-gizle-mobil { display: none; }
  .p-marka img { height: 36px; }
  .p-ikili { grid-template-columns: 1fr; }
  .p-butonlar .p-btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .p-kart-ana .p-buyuk-isaret { width: 120px; margin-bottom: 18px; }
  .p-kart-ana { padding: 32px 16px; }
}
@media (prefers-reduced-motion: reduce) { .portal * { transition: none !important; } }
