:root{
  --pe-blue: #1e63d6;
  --pe-blue-2: #0f4fbf;
  --pe-orange: #ff8a1a;
  --pe-text: #0c0e2a;
  --pe-muted: rgba(12,14,42,.72);
  --pe-border: rgba(12,14,42,.12);
  --pe-card: rgba(255,255,255,.96);
  --pe-radius: 18px;
  --pe-font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body.pe-body{
  margin:0;
  font-family: var(--pe-font);
  color: var(--pe-text);
  background: #f6f7fb;
}

.pe-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pe-border);
}

.pe-header-inner{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.pe-brand{ display:flex; align-items:center; text-decoration:none; }
.pe-logo{
  height: 60px;
  width: auto;
  display:block;
}

.pe-header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.pe-btn{
  border:0;
  cursor:pointer;
  font-family: var(--pe-font);
  font-weight: 600;
  letter-spacing: .2px;
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(12,14,42,.08);
}
.pe-btn:active{ transform: translateY(1px); }
.pe-btn:focus{ outline: 3px solid rgba(30,99,214,.18); outline-offset: 2px; }

.pe-btn-blue{
  background: linear-gradient(135deg, var(--pe-blue), var(--pe-blue-2));
  color: #fff;
}
.pe-btn-blue:hover{ filter: brightness(1.03); }

.pe-btn-orange{
  background: linear-gradient(135deg, var(--pe-orange), #ff6f00);
  color: #fff;
}
.pe-btn-orange:hover{ filter: brightness(1.03); }

.pe-btn-full{
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
}

.pe-main{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 22px;
  min-height: 45vh;
}

/* ================= MODAL ================= */
.pe-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.pe-modal-open{ overflow:hidden; }

.pe-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(30,99,214,.24);
  backdrop-filter: blur(6px);
}

.pe-modal-card{
  position: relative;
  width: min(520px, calc(100% - 28px));
  margin: 12vh auto 0;
  background: var(--pe-card);
  border: 1px solid rgba(30,99,214,.18);
  border-radius: var(--pe-radius);
  box-shadow: 0 24px 70px rgba(12,14,42,.18);
  transform: translateY(10px);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
  padding: 16px 16px 14px;
}

.pe-modal.is-open .pe-modal-card{
  transform: translateY(0);
  opacity: 1;
}

.pe-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 2px 2px 10px;
}

.pe-modal-title{
  font-weight: 700;
  font-size: 16px;
  color: rgba(12,14,42,.88);
}

.pe-modal-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(12,14,42,.12);
  background: rgba(255,255,255,.8);
  cursor:pointer;
  display:grid;
  place-items:center;
  color: rgba(12,14,42,.7);
}
.pe-modal-close:hover{
  background: rgba(30,99,214,.06);
  color: rgba(30,99,214,.9);
  border-color: rgba(30,99,214,.22);
}
.pe-modal-close svg{ width: 20px; height: 20px; }

/* ================= FORM ================= */
.pe-form{ padding: 6px 2px 2px; }

.pe-row{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
}

@media (max-width: 520px){
  .pe-row{ grid-template-columns: 1fr; }
}

.pe-field{ margin-bottom: 10px; }
.pe-label{
  display:block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(12,14,42,.78);
  margin: 0 0 6px 0;
}

.pe-input, .pe-select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(12,14,42,.14);
  background: rgba(255,255,255,.95);
  padding: 11px 12px;
  font-family: var(--pe-font);
  font-weight: 650;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.pe-input:focus, .pe-select:focus{
  border-color: rgba(30,99,214,.35);
  box-shadow: 0 0 0 4px rgba(30,99,214,.12);
}

.pe-help{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(12,14,42,.55);
}

/* password row */
.pe-pass{
  position: relative;
}
.pe-input-pass{
  padding-right: 44px;
}
.pe-eye{
  position:absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(12,14,42,.12);
  background: rgba(255,255,255,.82);
  display:grid;
  place-items:center;
  cursor:pointer;
  color: rgba(12,14,42,.62);
}
.pe-eye:hover{
  color: rgba(30,99,214,.9);
  border-color: rgba(30,99,214,.22);
  background: rgba(30,99,214,.06);
}
.pe-eye svg{ width: 18px; height: 18px; }
.pe-eye.is-on{ color: rgba(30,99,214,.95); }

/* links */
.pe-link{
  display:block;
  text-align:center;
  margin-top: 10px;
  text-decoration:none;
  font-weight: 600;
  color: rgba(30,99,214,.95);
}
.pe-link:hover{ text-decoration: underline; }

.pe-link-muted{
  color: rgba(12,14,42,.62);
  font-weight: 600;
}

.pe-register{
  margin-top: 10px;
  text-align:center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(12,14,42,.78);
}

/* ================= FOOTER ================= */
.pe-footer{
  border-top: 1px solid var(--pe-border);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
}

.pe-footer-inner{
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 16px;
}

.pe-footer-placeholder{
  height: 90px; /* şimdilik menü/alan için */
}

.pe-footer-text{
  text-align:center;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(12,14,42,.72);
  line-height: 1.45;
}

.pe-footer-copy{
  margin-top: 6px;
  font-weight: 600;
  color: rgba(12,14,42,.65);
}

.pe-modal{
  --pe-accent: var(--pe-blue);
  --pe-accent-2: var(--pe-blue-2);
  --pe-accent-soft: rgba(30,99,214,.24);
}

/* işveren (mavi) */
.pe-modal.pe-theme-isveren{
  --pe-accent: var(--pe-blue);
  --pe-accent-2: var(--pe-blue-2);
  --pe-accent-soft: rgba(30,99,214,.24);
}

/* part eleman (turuncu) */
.pe-modal.pe-theme-eleman{
  --pe-accent: var(--pe-orange);
  --pe-accent-2: #ff6f00;
  --pe-accent-soft: rgba(255,138,26,.22);
}

/* backdrop artık tema renginden beslensin */
.pe-modal-backdrop{
  background: var(--pe-accent-soft);
}

/* modal border/hover tema renginden beslensin */
.pe-modal-card{
  border: 1px solid color-mix(in srgb, var(--pe-accent) 22%, transparent);
}

/* focus ring tema renginden beslensin */
.pe-input:focus, .pe-select:focus{
  border-color: color-mix(in srgb, var(--pe-accent) 42%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pe-accent) 18%, transparent);
}

/* link rengi tema olsun */
.pe-link{
  color: var(--pe-accent);
}

/* göz ikonu hover da tema */
.pe-eye:hover{
  color: var(--pe-accent);
  border-color: color-mix(in srgb, var(--pe-accent) 24%, transparent);
  background: color-mix(in srgb, var(--pe-accent) 7%, transparent);
}
.pe-eye.is-on{ color: var(--pe-accent); }

/* Giriş Yap butonu: tema rengiyle çalışsın */
.pe-btn-theme{
  background: linear-gradient(135deg, var(--pe-accent), var(--pe-accent-2));
  color:#fff;
}
.pe-btn-theme:hover{ filter: brightness(1.03); }

/* ================= FLASH MESSAGES ================= */

.pe-flash-wrap{
  margin-bottom: 14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pe-flash{
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  border:1px solid;
}

/* success */
.pe-flash-success{
  background: rgba(31,163,91,.08);
  border-color: rgba(31,163,91,.35);
  color: #1fa35b;
}

/* error / danger */
.pe-flash-danger{
  background: rgba(231,76,60,.08);
  border-color: rgba(231,76,60,.35);
  color: #e74c3c;
}

/* warning */
.pe-flash-warning{
  background: rgba(255,165,0,.10);
  border-color: rgba(255,165,0,.35);
  color: #ff8a00;
}

/* info */
.pe-flash-info{
  background: rgba(31,79,139,.08);
  border-color: rgba(31,79,139,.35);
  color: #1f4f8b;
}

.pe-flash{
  position: relative;
  overflow: hidden;
  animation: peFlashIn .18s ease both;
}

/* kapanma state'i */
.pe-flash.is-hiding{
  animation: peFlashOut .22s ease forwards;
}

/* giriş animasyonu */
@keyframes peFlashIn{
  from{ transform: translateY(-6px); opacity: 0; }
  to  { transform: translateY(0);   opacity: 1; }
}

/* çıkış animasyonu */
@keyframes peFlashOut{
  to{ transform: translateY(-6px); opacity: 0; height: 0; margin: 0; padding-top:0; padding-bottom:0; border-width:0; }
}

/* küçük progress bar (5 sn) */
.pe-flash::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:3px;
  width:100%;
  background: currentColor;
  opacity: .25;
  transform-origin: left;
  animation: peFlashBar 5s linear forwards;
}

.pe-flash.is-hiding::after{
  animation: none;
}

@keyframes peFlashBar{
  from{ transform: scaleX(1); }
  to  { transform: scaleX(0); }
}