:root {
  color-scheme: light;
  --sea: #174360;
  --sea-dark: #102e45;
  --ink: #302f2d;
  --muted: #555451;
  --paper: #e3e3e0;
  --white: #f8f9f8;
  --line: #c6c8c4;
  --header-height: 88px;
  --project-marks-height: 148px;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #8b6636; outline-offset: 6px; }
h1, h2, p { margin-top: 0; }
.container { width: min(1360px, calc(100% - 112px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 16px; padding: 12px 18px; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: calc(var(--header-height) - 1px); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; width: 46px; height: 58px; object-fit: contain; }
.brand > span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.brand strong { display: block; color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.hero {
  --hero-height: max(520px, calc(100svh - var(--header-height) - var(--project-marks-height)));
  --sea-gradient: linear-gradient(90deg, #0b2740dc, #0c315184 48%, #0c315122);
  position: relative;
  display: grid;
  min-height: var(--hero-height);
  background: var(--sea-gradient) var(--sea);
}
.hero-contours { position: absolute; inset: 0; pointer-events: none; }
.hero-contours img { display: block; width: 100%; height: 100%; object-fit: fill; }
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-inline: max(56px, calc((100% - 1360px) / 2));
  padding-block: calc(var(--hero-height) * .4) clamp(24px, 5svh, 64px);
  color: var(--white);
}
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; line-height: 1.5; margin-bottom: 24px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(60px, 6.4vw, 102px); line-height: 1.02; letter-spacing: -3.5px; margin-bottom: 24px; }
.hero-copy h1 { max-width: 100%; }
h1 em { color: #c9e5f4; font-weight: 400; }
.hero-message { margin-bottom: 36px; color: #edf5fa; font-size: 15px; }
.hero-access { width: 100%; max-width: 290px; }
.hero-login { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 15px 20px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; transition: background .18s; }
.hero-login:hover { background: var(--white); }
.hero-login:focus-visible { outline-color: #b6ddf5; }
.login-landscape {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: url("../images/izohipse-sira-stijena.webp") center / 100% 100% no-repeat,
    linear-gradient(90deg, #102e45, #174360);
}
.back-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--sea-dark); text-decoration: none; font-size: 13px; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.back-link .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.login-page { min-height: 100svh; }
.login-main { padding-block: 48px 56px; }
.login-shell { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); background: var(--white); }
.login-landscape { min-height: 600px; }
.login-landscape p { position: absolute; z-index: 1; left: 36px; bottom: 20px; margin: 0; color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 38px; letter-spacing: -1px; }
.login-content { padding: 42px clamp(28px, 4vw, 60px); }
.login-content .eyebrow { color: var(--muted); margin-bottom: 14px; }
.login-content h1 { font-size: clamp(44px, 4.2vw, 62px); letter-spacing: -2px; margin-bottom: 12px; }
.login-intro { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.portal-options { display: grid; gap: 12px; }
.portal-action { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 18px; align-items: center; min-height: 106px; padding: 22px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); transition: background .18s, border-color .18s; }
.portal-action:hover { background: #dce7ed; border-color: #758d9a; }
.portal-icon { display: flex; color: var(--sea); }
.portal-icon .icon { width: 30px; height: 30px; }
.portal-label { min-width: 0; }
.portal-label strong { display: block; font-weight: 600; font-size: 22px; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 7px; overflow-wrap: anywhere; }
.portal-description { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.portal-arrow { width: 20px; height: 20px; }
.maintenance-action { min-height: 72px; padding: 18px 22px; margin-top: 8px; border: 0; border-top: 1px solid var(--line); background: transparent; }
.maintenance-action:hover { background: var(--paper); border-color: var(--line); }
.maintenance-action .portal-icon .icon { width: 23px; height: 23px; }
.maintenance-action strong { font-size: 15px; margin-bottom: 5px; }
.maintenance-action .portal-description { font-size: 11px; }
.primary-link { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; color: var(--white); background: var(--sea); text-decoration: none; }
@media(min-width:1600px) { .login-main { padding-top: 64px; } }
@media(max-width:1050px) {
  .container { width: calc(100% - 64px); }
  .hero-copy { padding-inline: 32px; }
  h1 { font-size: 72px; }
  .hero-message { font-size: 13px; }
  .login-shell { grid-template-columns: minmax(0,.55fr) minmax(0,1fr); }
  .login-content { padding: 36px 28px; }
  .portal-action { padding: 20px 16px; gap: 12px; }
}
@media(max-width:700px) {
  :root { --header-height: 74px; --project-marks-height: 172px; }
  .container { width: calc(100% - 36px); }
  .header-inner { gap: 14px; }
  .brand { gap: 10px; }
  .brand-mark { width: 35px; height: 44px; }
  .brand > span { font-size: 10px; }
  .brand strong { font-size: 17px; }
  .hero {
    --hero-height: max(500px, calc(100svh - var(--header-height) - var(--project-marks-height)));
    --sea-gradient: linear-gradient(90deg, #0b2740cf, #102e458c 75%, #102e456b);
  }
  .hero-copy { padding-inline: 28px; padding-block-start: calc(var(--hero-height) * .42); }
  .eyebrow { margin-bottom: 18px; font-size: 9px; letter-spacing: 1.7px; }
  h1 { font-size: clamp(58px, 13vw, 84px); letter-spacing: -2.5px; margin-bottom: 16px; }
  .hero-message { margin-bottom: 28px; font-size: 13px; }
  .hero-access { max-width: none; }
  .hero-login { min-height: 52px; }
  .login-main { padding-block: 24px 32px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-landscape { min-height: 146px; }
  .login-landscape p { display: none; }
  .login-content { padding: 28px 22px 22px; }
  .login-content .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .login-content h1 { font-size: 46px; }
  .login-intro { font-size: 13px; margin-bottom: 22px; }
  .portal-action { grid-template-columns: 28px minmax(0,1fr) 18px; gap: 12px; min-height: 100px; padding: 18px 14px; }
  .portal-icon .icon { width: 26px; height: 26px; }
  .portal-label strong { font-size: 20px; }
  .portal-description { font-size: 11px; }
  .maintenance-action { min-height: 72px; padding-block: 16px; }
  .maintenance-action strong { font-size: 14px; }
  .back-link { font-size: 12px; gap: 7px; }
}
@media(max-width:360px) {
  .container { width: calc(100% - 28px); }
  .brand strong { font-size: 15px; }
  .hero-copy { padding-inline: 22px; }
  .login-content { padding-inline: 16px; }
  .portal-action { gap: 10px; padding-inline: 12px; }
  .portal-label strong { font-size: 18px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }

/* Role forms on /prijava submit directly to their private portal through native POST. */
.entry-choices { padding: 18px; color: var(--ink); background: #f8f9f8; border: 1px solid #c6c8c4; }
.entry-heading { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.entry-role + .entry-role { border-top: 1px solid var(--line); }
.entry-role-heading { display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.entry-role-heading strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; }
.entry-description { display: block; margin-top: 4px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.entry-role-heading > .icon { color: var(--sea); }
.entry-role-arrow { width: 18px; height: 18px; }
.entry-role[open] .entry-role-arrow { transform: rotate(90deg); }
.entry-form { color: #302f2d; display: grid; gap: 8px; padding: 4px 0 18px; }
.entry-form label { display: block; color: #302f2d; font-size: 12px; font-weight: 600; }
.entry-form input { min-width: 0; width: 100%; height: 46px; margin: 0 0 6px; padding: 10px 12px; border: 1px solid #87979f; border-radius: 0; background: #fff; color: #1b2f3c; font: inherit; font-size: 16px; }
.entry-form input:focus-visible { outline: 2px solid #174360; outline-offset: 2px; }
.entry-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--sea); border-radius: 0; color: #fff; background: var(--sea); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.entry-submit:hover { background: var(--sea-dark); }
.entry-submit:focus-visible, .entry-role-heading:focus-visible { outline: 3px solid #8b6636; outline-offset: 3px; }
.entry-error { margin: 0 0 8px; padding: 12px; border-left: 3px solid #a23b29; background: #fff0e9; color: #762c20; font-size: 12px; line-height: 1.6; }
.entry-error[hidden] { display: none; }


.entry-submit > span { color: #fff; }

.entry-role > summary::-webkit-details-marker { display: none; }
.entry-page-choices { padding: 0; border: 0; background: transparent; }
.entry-page-choices .entry-role { margin-top: 12px; border: 1px solid var(--line); background: #f4f6f5; }
.entry-page-choices .entry-role-heading { padding: 20px; }
.entry-page-choices .entry-form { padding: 0 20px 20px; }
@media(max-width:700px) {
  .entry-page-choices .entry-role-heading { padding: 16px 14px; gap: 10px; }
  .entry-page-choices .entry-form { padding: 0 14px 16px; }
}
