/* ===== IEC Müşteri Portalı — site kabuğu ===== */
:root { --ink: #170a0c; --ink2: #22100f; --bg: #f6f3f3; --line: #ece6e6; --line2: #ddd3d3; --text: #1a1213; --muted: #7a6d6e; --red: #dc2626; --red2: #b91c1c;
  --grad: linear-gradient(135deg, #ef4444 0%, #dc2626 40%, #9f1239 100%); --glow: 0 8px 20px -6px rgba(220,38,38,.55); --ring: 0 0 0 4px rgba(220,38,38,.14); }
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
a { color: var(--red2); }
.p-hidden { display: none !important; }
.p-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.p-loading, .p-fatal { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); text-align: center; padding: 20px; }
.p-loading img, .p-fatal img { width: 56px; height: 56px; }
.p-btn { font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--line2); background: #fff; color: var(--text); padding: 10px 16px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.p-btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.p-btn.wide { width: 100%; padding: 12px; margin-top: 18px; font-size: 15px; }
.p-btn:disabled { opacity: .6; cursor: default; }
input, select { font: inherit; }
.p-form input, .p-dbox input { width: 100%; padding: 11px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; color: var(--text); }
input:focus, select:focus, .p-btn:focus-visible { outline: none; box-shadow: var(--ring); border-color: var(--red); }
label { display: block; font-size: 12.5px; font-weight: 600; color: #433838; margin: 14px 0 5px; }
.p-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: var(--red2); font-weight: 600; font-size: 13px; box-shadow: inset 0 0 0 1px #fee2e2; }

/* giriş */
.p-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.p-art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: radial-gradient(700px 420px at 0% 0%, rgba(220,38,38,.45), transparent 60%), radial-gradient(500px 400px at 100% 100%, rgba(159,18,57,.35), transparent 60%), linear-gradient(160deg, var(--ink2), var(--ink)); }
.p-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
.p-art > * { position: relative; z-index: 1; }
.p-art h1 { font-size: 40px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.p-art h1 span { background: linear-gradient(90deg, #fca5a5, #f87171); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-art p { color: #e7dada; max-width: 460px; font-size: 15px; margin: 0 0 24px; }
.p-art ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-art li { display: flex; gap: 10px; align-items: center; color: #f1e7e7; font-weight: 500; } .p-art li .pv-ic { color: #f87171; }
.p-artfoot { font-size: 12px; color: #a99596; } .p-artfoot a { color: #d8c6c7; }
.p-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.p-brand img { width: 42px; height: 42px; background: #fff; border-radius: 12px; padding: 5px; box-shadow: var(--glow); }
.p-brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.p-brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.p-form { display: grid; place-items: center; padding: 32px 20px; }
.p-form form { width: 100%; max-width: 380px; }
.p-form h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.p-help { margin-top: 22px; padding: 14px; background: #faf7f7; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--muted); }
.p-help .pv-ic { vertical-align: -3px; margin-right: 4px; }

/* başlık */
.p-staffbar { background: #fef3c7; color: #78350f; font-weight: 600; font-size: 13px; padding: 8px 16px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.p-head { background: radial-gradient(800px 300px at 0% -50%, rgba(220,38,38,.35), transparent 60%), linear-gradient(180deg, var(--ink2), var(--ink)); color: #fff; position: sticky; top: 0; z-index: 20; }
.p-headin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.p-head .p-brand img { width: 38px; height: 38px; }
.p-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-right select { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 8px 10px; max-width: 320px; font-weight: 600; }
.p-right select option { color: var(--text); }
.p-user { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #f1e7e7; }
.p-user small { display: block; font-size: 11.5px; color: #b9a6a7; font-weight: 500; }
.p-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; flex: none; }
.p-icon { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: 8px; border-radius: 10px; cursor: pointer; display: inline-flex; }
.p-icon:hover { border-color: rgba(255,255,255,.4); }
.p-tabsbar { border-top: 1px solid rgba(255,255,255,.08); }
.p-main { padding-top: 26px; padding-bottom: 30px; min-height: 60vh; }
.p-foot { color: var(--muted); font-size: 12.5px; padding: 18px 0 30px; border-top: 1px solid var(--line2); display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: space-between; }
.p-foot div { display: flex; gap: 14px; flex-wrap: wrap; } .p-foot a { color: var(--muted); text-decoration: none; } .p-foot a:hover { color: var(--red2); }
.p-foot .pv-ic { vertical-align: -3px; }

/* diyalog, bildirim */
.p-dialog { position: fixed; inset: 0; background: rgba(23,10,12,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 50; }
.p-dbox { background: #fff; border-radius: 20px; padding: 22px; width: 100%; max-width: 420px; }
.p-dbox h2 { margin: 0 0 6px; font-size: 18px; }
.p-dact { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.p-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 60; font-weight: 600; }
.p-toast.err { background: var(--red2); }

@media (max-width: 980px) { .p-login { grid-template-columns: 1fr; } .p-art { padding: 28px 22px; } .p-art h1 { font-size: 30px; } }
@media (max-width: 800px) {
  .p-wrap { padding: 0 16px; }
  .p-uname, .p-head .p-brand small { display: none; }
  .p-right select { max-width: 150px; }
}
