/* Oppenheimer & Co. Inc. */
/* Cezzare V0.01.php */

/* ============================================================
   PORTAL (secure/) — JPM-style UI (global + login)
   - Login: diagonal left panel + right image
   - Portal: clean banking header + container layout
   - Typography: Inter
   ============================================================ */

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #0b0f16;
  --ink: #ffffff;

  --muted: rgba(255,255,255,.80);
  --muted2: rgba(255,255,255,.62);

  --line: rgba(255,255,255,.14);
  --line2: rgba(255,255,255,.10);

  /* JPM-ish slate blue */
  --jpm: rgba(70, 98, 130, .88);
  --jpm-2: rgba(70, 98, 130, 1);
  --jpm-focus: rgba(95,195,255,.70);

  /* panel glass */
  --panel-a: rgba(20,26,35,.86); /* malo transparentnije */
  --panel-b: rgba(10,14,20,.82);

  --glass: rgba(255,255,255,.06);
  --danger: #ff6b6b;
  --ok: rgba(34,197,94,.90);

  --r-sm: 10px;
  --r-lg: 16px;

  --fs-body: 16px;
  --fs-input: 15px;
  --fs-small: 13px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --container: 1180px;

  /* diagonal line color */
  --diag: #66cee4;
}

/* ============================================================
   BASE
   ============================================================ */
   
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit}

/* ============================================================
   GLOBAL PORTAL UI (non-login pages)
   ============================================================ */
.portal-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(12,16,24,.88), rgba(12,16,24,.72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.portal-header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.portal-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 220px;
}
.portal-brand img{
  height: 26px;
  width:auto;
  filter: brightness(1.03);
}
.portal-brand-text{display:flex;flex-direction:column;gap:2px}
.portal-brand-name{
  font-weight: 600;
  letter-spacing: .02em;
}
.portal-brand-sub{
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.portal-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.portal-actor{
  display:inline-flex;
  align-items:center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
}
.portal-logout{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.portal-logout:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.portal-main{
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 18px 40px;
}

/* simple utilities */
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.ui-label{
  display:block;
  font-size: var(--fs-small);
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
}
.ui-input{
  width:100%;
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  padding: 12px 12px;
  outline:none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ui-input:focus{
  border-color: rgba(95,195,255,.55);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(95,195,255,.14);
}
.ui-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:none;
  cursor:pointer;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--jpm);
  color:#fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.ui-btn:hover{
  background: var(--jpm-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.ui-btn:active{transform: translateY(0)}
.ui-btn--ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  text-transform:none;
  letter-spacing: 0;
  font-weight: 500;
}
.ui-btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
html, body{
  overflow-x: hidden;
  overflow-y: auto;
}
/* ============================================================
   LOGIN PAGE (login.php uses .p-* classes)
   ============================================================ */
.p-wrap{
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background: var(--bg);
}

/* Right image bg — LOCKED */
/* Right image bg — LOCKED */
.p-bg{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: none !important;
  animation: none !important;
  transition: none !important;
  z-index: 0;
}

.p-bg::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background: linear-gradient(
    90deg,
    rgba(35,43,49,0.55) 0%,
    rgba(35,43,49,0.18) 45%,
    rgba(35,43,49,0.30) 100%
  );
}

.p-wrap,
.p-left{
  transform: none !important;
}

/* ============================================================
   LEFT PANEL — stronger diagonal (bottom pushed further right)
   ============================================================ */
.p-left{
  position:relative;
  z-index: 5;
  width:min(980px,100%);
  min-height:100vh;
  padding: 28px 44px 22px;

  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, var(--panel-a), var(--panel-b));

  backdrop-filter: blur(10px);

  /* TOP anchor + BOTTOM pushed MORE right (bigger slant) */
  clip-path: polygon(
    0 0,
    66% 0,
    96% 100%,
    0 100%
  );

  display:flex;
  flex-direction:column;
  overflow: visible;
}

/* JPM blue diagonal line — INSIDE the clipped panel */
.p-left::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 9999;
  background: #66cee4;

  /* IMPORTANT: values are slightly LEFT of the panel edge (inside),
     so clip-path of .p-left will NOT cut it off */
  clip-path: polygon(
  65.70% 0,
  66.00% 0,
  96.00% 100%,
  95.70% 100%
);

  box-shadow:
    0 0 6px rgba(102,206,228,.55),
    0 0 14px rgba(102,206,228,.28);
}

/* ============================================================
   TOP ROW (logo + language pill)
   ============================================================ */
.p-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 0;
}
.p-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.p-brand img{
  height:26px;
  width:auto;
  filter: brightness(1.03);
}
.p-lang{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.p-lang-dot{
  width:7px;height:7px;border-radius:50%;
  background: rgba(255,255,255,.75);
  display:inline-block;
}
.p-lang-caret{opacity:.8}

/* ============================================================
   CENTER BLOCK (headline + form) — move right like JPM
   ============================================================ */
.p-center{
  flex: 1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-bottom: 90px;         /* space for footer */
  padding-left: 90px;           /* overall shift right (your request) */
  max-width: 560px;
}

/* Headline */
.p-head{
  margin: 0 0 18px;
  max-width: 520px;
}
.p-kicker{
  font-size: 18px;
  font-weight: 500;
  opacity: .92;
  margin: 0 0 6px;
}
.p-title{
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
  font-weight: 600;
}
.p-title sup{font-size:.55em; top:-.6em}
.p-sub{
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

/* Form shifted a bit MORE than headline (JPM feel) */
.p-form{
  margin-top: 18px;
  max-width: 420px;
  transform: translateX(40px);
}

.p-group{margin: 0 0 22px}
.p-label{
  font-size: 13px;
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
  display:block;
  letter-spacing: .01em;
}

/* underline input BUT slightly brighter background so it’s visible */
.p-input{
  width:100%;
  font-size: var(--fs-input);
  color: var(--ink);

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );

  border: none;
  border-bottom: 2px solid rgba(255,255,255,.28);
  border-radius: 0;
  padding: 10px 6px 12px;
  outline:none;

  transition: border-color .2s ease, background .2s ease;
}
.p-input::placeholder{color: rgba(255,255,255,.55)}
.p-input:focus{
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.12),
    rgba(255,255,255,.05)
  );
  border-bottom-color: var(--jpm-focus);
}
.p-input[disabled]{
  background: transparent;
  border-bottom-color: rgba(255,255,255,.20);
  opacity:.82;
  -webkit-text-fill-color: rgba(255,255,255,.78);
}

/* error */
.p-input.is-error{border-bottom-color: rgba(255, 80, 80, .75)}
.p-alert{
  max-width: 420px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 12px 12px;
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.90);
  transform: translateX(40px); /* align with form */
}
.p-alert--err{
  background: rgba(255, 50, 50, .10);
  border-color: rgba(255, 80, 80, .35);
}

/* password toggle */
.p-passWrap{position:relative}
.pw-toggle{
  position:absolute;
  right:0;
  top: 34px;
  border:none;
  background: transparent;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  padding: 6px 8px;
  cursor:pointer;
}
.pw-toggle:hover{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* button */
.p-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width: 240px;
  max-width: 100%;
  border:none;
  cursor:pointer;
  border-radius: 4px;
  padding: 13px 18px;
  background: var(--jpm);
  color: #fff;
  border: 1px solid rgba(255,255,255,.10);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.p-btn:hover{
  background: var(--jpm-2);
  transform: translateY(-1px);
}
.p-btn:active{transform: translateY(0)}
.p-arr{display:inline-block; transform: translateY(-1px)}

/* back link */
.p-linkback{
  margin-top: 16px;
  display:inline-block;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.74);
  cursor:pointer;
  padding: 0;
}
.p-linkback:hover{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   BOTTOM LINKS (footer inside panel)
   NOTE: You asked lower side angle differs; that is handled by clip-path.
   ============================================================ */
.p-bottom{
  position:absolute;
  left: 44px;
  right: 44px;
  bottom: 16px;
  color: rgba(255,255,255,.72);
  opacity: .92;
}
.p-links{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}
.p-links a{color: rgba(255,255,255,.78)}
.p-links a:hover{
  color:#fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.p-sep{opacity:.35}
.p-legal{
  margin-top: 10px;
  font-size: 11px;
  opacity: .70;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px){
  .p-center{ padding-left: 50px; }
  .p-form{ transform: translateX(20px); }
  .p-alert{ transform: translateX(20px); }
  .p-title{ font-size: 40px; }
}

@media (max-width: 980px){
  .portal-header-inner{padding: 12px 14px;}
  .portal-main{padding: 18px 14px 34px;}

  .p-left{
    width:100%;
    clip-path:none;
    padding: 20px 18px 20px;
  }
  .p-left::before{display:none;} /* hide diagonal line on mobile */
  .p-center{
    padding-left: 0;
    padding-bottom: 20px;
    max-width: 560px;
  }
  .p-form{ transform:none; }
  .p-alert{ transform:none; }
  .p-title{ font-size: 34px; }
  .p-btn{ width: 100%; }
  .p-bottom{
    position:relative;
    left:auto; right:auto; bottom:auto;
    margin-top: 28px;
  }
}

@media (max-width: 520px){
  .portal-brand img{height:24px}
  .portal-brand-name{font-size: 14px}
  .portal-brand-sub{font-size: 11px}
  .p-title{font-size: 30px}
}
/* ============================================================
   Login polish: diagonal line intro animation
   ============================================================ */

.p-left::before{
  /* ovo već imaš, samo dodaj ova 2 reda: */
  transform: translateY(-14px);
  opacity: 0;
  animation: diagIn .65s ease-out .10s forwards;
}

@keyframes diagIn{
  to{
    transform: translateY(0);
    opacity: 1;
  }
}
/* subtle parallax, only on login */
.p-wrap.is-login .p-bg{
  will-change: transform;
  transform: translate3d(0,0,0);   /* ⬅️ NEMA scale */
  transition: transform .12s ease-out;
}
/* ============================================================
   Step fade (mount + submit)
   ============================================================ */

.p-center{
  opacity: 0;
  transform: translateY(10px);
  animation: stepIn .35s ease-out .05s forwards;
}

@keyframes stepIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* when submitting -> fade out quickly */
.p-wrap.is-submitting .p-center{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

/* optional: button loading state */
.p-btn.is-loading{
  pointer-events:none;
  position: relative;
  color: transparent !important;
}
.p-btn.is-loading::after{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Step indicator — smaller & subtle */
.p-step{
  font-size: 11px;              /* bilo 12px */
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48); /* malo tiše */
  margin-bottom: 8px;
}
/* ============================================================
   LOGIN FOOTER MODAL (Contact / Security / Legal)
   ============================================================ */

.p-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.p-modal.is-open{ display: block; }

.p-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.p-modal__dialog{
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  margin: 7vh auto 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18,24,34,.96), rgba(10,14,20,.94));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  overflow: hidden;

  transform: translateY(10px);
  opacity: 0;
  animation: pModalIn .18s ease-out forwards;
}

@keyframes pModalIn{
  to{ transform: translateY(0); opacity: 1; }
}

.p-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  cursor: pointer;
}
.p-modal__close:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
}

.p-modal__head{
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(900px 350px at 15% 0%, rgba(102,206,228,.10), transparent 60%);
}

.p-modal__kicker{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 6px;
}

.p-modal__title{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -.2px;
}

.p-modal__sub{
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  line-height: 1.55;
  max-width: 70ch;
}

.p-modal__body{
  padding: 16px 18px 18px;
  max-height: 62vh;
  overflow: auto;
}

/* body scrollbars subtle */
.p-modal__body::-webkit-scrollbar{ width: 10px; }
.p-modal__body::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.10);
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.p-modal__body::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.16); }

/* modal form */
.p-modal .m-row{ display:flex; gap:12px; flex-wrap:wrap; }
.p-modal .m-col{ flex: 1 1 220px; }

.p-modal .m-label{
  display:block;
  font-size: 12px;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}

.p-modal .m-input,
.p-modal .m-select,
.p-modal .m-textarea{
  width: 100%;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 12px;
  outline: none;
}

.p-modal .m-textarea{ min-height: 120px; resize: vertical; }

.p-modal .m-input:focus,
.p-modal .m-select:focus,
.p-modal .m-textarea:focus{
  border-color: rgba(102,206,228,.55);
  box-shadow: 0 0 0 3px rgba(102,206,228,.12);
  background: rgba(255,255,255,.08);
}

.p-modal .m-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.p-modal .m-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(70,98,130,.88);
  color:#fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor:pointer;
}

.p-modal .m-btn:hover{ background: rgba(70,98,130,1); }

.p-modal .m-btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  letter-spacing: 0;
  text-transform:none;
  font-weight: 500;
}
.p-modal .m-btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.p-modal .m-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  line-height: 1.55;
}

.p-modal .m-success{
  border: 1px solid rgba(102,206,228,.28);
  background: rgba(102,206,228,.10);
  border-radius: 12px;
  padding: 14px;
  color: rgba(255,255,255,.90);
}

@media (max-width: 520px){
  .p-modal__dialog{ margin-top: 5vh; }
  .p-modal__title{ font-size: 20px; }
  .p-modal__body{ max-height: 68vh; }
}
/* Modal body text – refined banking typography */
.p-modal__body p{
  font-size: 14px;          /* ako je bilo 15–16px */
  line-height: 1.55;        /* elegantnije */
  font-weight: 400;         /* normal, ne bold */
  color: rgba(255,255,255,.78);
  letter-spacing: .01em;    /* vrlo suptilno */
}
/* Login help links (JPM-style) */
.p-helpLinks{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.p-helpLinks a{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-weight: 400;
}

.p-helpLinks a:hover{
  color: #66cee4;
}

.p-help-icon{
  font-size: 12px;
  opacity: .7;
}

.p-help-sep{
  opacity: .35;
}





/* language switcher */
.p-lang { position: relative; }
.p-lang-btn{
  display:flex; align-items:center; gap:8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:8px 10px;
  border-radius:999px;
  cursor:pointer;
}
.p-lang-globe{ font-size:14px; opacity:.95; }
.p-lang-label{ font-size:13px; letter-spacing:.2px; }
.p-lang-caret{ opacity:.85; }

.p-lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width: 190px;
  background: rgba(16, 24, 39, .96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display:none;
  z-index: 50;
}
.p-lang.is-open .p-lang-menu{ display:block; }

.p-lang-item{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-radius: 12px;
  color:#e5e7eb;
  text-decoration:none;
  font-size:13px;
}
.p-lang-item:hover{
  background: rgba(255,255,255,.08);
}
.p-lang-item.is-active{
  background: rgba(37, 99, 235, .18);
  border: 1px solid rgba(37, 99, 235, .22);
}
.p-lang-tag{
  font-size:11px;
  opacity:.85;
}

/* TOP BAR layout: logo left, language right */
.p-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* language switcher (top right) */
.p-lang{ position:relative; margin-left:auto; }
.p-lang-btn{
  display:flex; align-items:center; gap:10px;
  background: transparent;
  border: 0;
  color:#fff;
  padding: 10px 10px;
  border-radius: 6px;
  cursor:pointer;
  font-size: 14px;
  letter-spacing: .2px;
  opacity: .95;
}
.p-lang-btn:hover{ background: rgba(255,255,255,.06); }
.p-lang-globe{ font-size: 14px; opacity:.95; }
.p-lang-caret{ opacity:.85; margin-left:6px; }

/* dropdown panel like screenshot */
.p-lang-menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 320px;              /* “širi” kao u primeru */
  background: rgba(17, 24, 39, .98); /* skoro crno */
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 0;          /* pravougaono kao primer */
  padding: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  display:none;
  z-index: 60;
  overflow:hidden;
}

/* open state */
.p-lang.is-open .p-lang-menu{ display:block; }

/* items */
.p-lang-item{
  display:block;
  padding: 16px 18px;
  color:#e5e7eb;
  text-decoration:none;
  font-size: 16px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.p-lang-item:last-child{ border-bottom:0; }

.p-lang-item:hover{
  background: rgba(255,255,255,.06);
}

.p-lang-item.is-active{
  background: #1f6fa6;  /* plavi highlight kao na slici */
  color:#fff;
}
.p-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.p-brand img{
  display:block;
  max-height:34px; /* po potrebi 32–38 */
  
  width:auto;
}
.p-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  position:relative;
  z-index:20;
}

.p-lang{ position:relative; z-index:30; }

.p-lang-btn{
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:0;
  color:rgba(255,255,255,.92);
  font:inherit;
  cursor:pointer;
  padding:8px 10px;
  border-radius:10px;
}

.p-lang-btn:hover{ background:rgba(255,255,255,.08); }

.p-lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:220px;
  background:rgba(10,16,28,.96);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
  display:none;
}

#langSwitcher.is-open .p-lang-menu{ display:block; }

.p-lang-item{
  display:block;
  padding:12px 14px;
  color:rgba(255,255,255,.92);
  text-decoration:none;
}

.p-lang-item:hover{ background:rgba(255,255,255,.08); }
.p-lang-item.is-active{ background:rgba(43,109,159,.35); }

#langSwitcher{display:block !important; visibility:visible !important; opacity:1 !important;}
#langSwitcher .p-lang-btn{display:flex !important;}

#langSwitcher .p-lang-menu{display:none;}
#langSwitcher.is-open .p-lang-menu{display:block;}
/* lang dropdown must escape clip-path */
.p-top{ position:relative; z-index:99999; }
#langSwitcher{ position:relative; z-index:999999; }
#langSwitcher .p-lang-menu{ z-index:999999; }
/* FINAL: force language switcher visible */
#langSwitcher{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  padding: 8px 12px !important;
  border-radius:999px !important;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color:#fff !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#langSwitcher .p-lang-btn{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  background: transparent !important;
  border:0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color:#fff !important;
  cursor:pointer !important;
}

#langSwitcher .p-lang-menu{
  display:none;
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 260px;
  background: rgba(17,24,39,.98);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

#langSwitcher.is-open .p-lang-menu{ display:block; }

.p-top{ position:relative; z-index:99999; }
#langSwitcher{ display:flex !important; position:relative; z-index:999999; }
#langSwitcher .p-lang-btn{ display:flex !important; }
#langSwitcher .p-lang-menu{ z-index:999999; }
/* LOGIN language (fixed, outside clipped panel) */
.login-lang-fixed{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999999;
  display:flex;
  gap:8px;
}

.login-lang-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-lang-pill:hover{
  background: rgba(255,255,255,.10);
}

.login-lang-pill.is-active{
  background: rgba(102,206,228,.18);
  border-color: rgba(102,206,228,.35);
}
.login-lang-inline{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}
.login-lang-inline a{ opacity:.8; }
.login-lang-inline a.is-active{ opacity:1; color:#66cee4; }

/* inline language next to logo (fixed spacing) */
.login-lang-inline{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  position: relative;
  z-index: 999999; /* iznad svega */
}

/* odmak od logoa 300px */
.login-lang-inline--offset{
  margin-left: 300px;
}

/* linkovi */
.login-lang-inline a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  letter-spacing: .12em;
  font-weight: 500;
}
.login-lang-inline a:hover{ color:#66cee4; }
.login-lang-inline a.is-active{ color:#66cee4; }

/* separator */
.login-lang-inline span{ opacity:.35; }

/* na manjim ekranima da ne “pobegne” */
@media (max-width: 980px){
  .login-lang-inline--offset{ margin-left: 0; }
  .p-top{ justify-content:space-between; }
}
.p-left::before{ pointer-events:none; } /* već imaš, ok */
.p-top{ position: relative; z-index: 100000; }

.p-left::before{ z-index: 1; }
.p-left > *{ position: relative; z-index: 2; }
/* FLOAT language switcher (outside clipped .p-left) */
.login-lang-float{
  position: absolute;
  top: 28px;            /* prati .p-left padding-top */
  left: calc(44px + 450px); /* logo + 300px offset */
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);

  color: rgba(255,255,255,.82);
  font-size: 13px;
  letter-spacing: .12em;
}

.login-lang-float a{
  color: rgba(255,255,255,.80);
  text-decoration: none;
}
.login-lang-float a:hover{ color:#66cee4; }
.login-lang-float a.is-active{ color:#66cee4; }
.login-lang-float span{ opacity:.35; }

/* responsive */
@media (max-width: 980px){
  .login-lang-float{
    left: auto;
    right: 18px;
    top: 18px;
  }
}

.login-lang-globe{
  font-size: 14px;
  line-height: 1;
  opacity: .92;
  transform: translateY(-1px);
}

.login-lang-sep{
  opacity: .35;
}
.u-lang{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.u-lang__globe{ opacity:.9; }
.u-lang__sep{ opacity:.35; }
.u-lang__a{ opacity:.75; }
.u-lang__a.is-active{ opacity:1; color:#66cee4; }
.u-lang__a:hover{ opacity:1; }
.u-lang{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.u-lang__globe{
  font-size: 14px;
  opacity: .9;
}

.u-lang__a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
}

.u-lang__a.is-active{
  color: #66cee4;
}

.u-lang__sep{
  opacity: .35;
}
.u-lang{ margin-left: 10px; }
.jph-signout{ margin-left: 0; }
.u-lang{ margin-left: auto; }

.p-legalHint{
  margin-top:10px;
  font-size:11px;
  line-height:1.45;
  opacity:.85;
}

