/* ===== Osnova ===== */
:root {
  --ink: #17212b;
  --ink-2: #3a4652;
  --muted: #6b7682;
  --line: #e3e5e0;
  --line-2: #eef0ec;
  --bg: #f5f5f1;
  --surface: #ffffff;
  --side: #17212b;
  --side-2: #212d39;
  --side-ink: #c9d1d9;
  --accent: #f2b705;
  --accent-2: #ffd34d;
  --accent-ink: #231c05;
  --success: #2f7d52;  --success-bg: #e5f3ea;
  --warning: #9a6300;  --warning-bg: #fdf1d6;
  --danger: #b93b2c;   --danger-bg: #fbe6e2;
  --info: #2c64a3;     --info-bg: #e4eef9;
  --muted-bg: #eef0ec;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(23,33,43,.06), 0 4px 14px rgba(23,33,43,.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0 0 .6em; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ===== Raspored stranice ===== */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-name { font-weight: 750; font-size: 16px; letter-spacing: .01em; }
.brand-org { font-size: 11.5px; color: #8d99a5; margin-top: 1px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { padding: 6px 10px 18px; flex: 1; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #7d8995; padding: 16px 10px 6px; font-weight: 650; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--side-ink); font-weight: 500; position: relative; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--side-2); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav a.active .icon { color: var(--accent); }
.side-foot { padding: 12px 10px 16px; border-top: 1px solid #26323e; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .title { font-weight: 650; font-size: 15px; }
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; }
.userchip { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.userchip .name { font-weight: 600; font-size: 13px; padding-right: 6px; }
.content { padding: 26px 28px 60px; max-width: 1400px; width: 100%; }

/* ===== Elementi ===== */
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .grow { flex: 1; }
.page-head .count { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--muted-bg); border-radius: 99px; padding: 2px 9px; }
.sub { color: var(--muted); margin-top: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--line-2); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #26333f; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-2); }
.btn-danger { color: var(--danger); border-color: #efc9c2; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-head .grow { flex: 1; }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; text-decoration: none; }
.stat .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--muted-bg); color: var(--ink-2); }
.stat .ico.yellow { background: #fff4cc; color: #8a6400; }
.stat .ico.green { background: var(--success-bg); color: var(--success); }
.stat .ico.red { background: var(--danger-bg); color: var(--danger); }
.stat .ico.blue { background: var(--info-bg); color: var(--info); }
.stat .num { font-size: 26px; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }
a.stat:hover { background: #fcfcfa; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: var(--muted-bg); color: var(--ink-2); }
.badge-dark { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: #fff4cc; color: #6f5200; margin: 1px 2px 1px 0; }

.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff4cc; color: #7a5800; display: inline-grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.person { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.person .nm { font-weight: 600; }
.person .meta { font-size: 12px; color: var(--muted); }

/* Tabele */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 10px 14px; background: #fafaf7; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfcf9; }
.table .actions { text-align: right; white-space: nowrap; }
.row-link { text-decoration: none; font-weight: 600; }
.row-link:hover { text-decoration: underline; }

/* Filteri i tabovi */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { height: 36px; }
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 9px; color: var(--muted); }
.search input, .search input[type=search] { padding-left: 34px; min-width: 240px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs a, .tabs button { padding: 9px 13px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.active, .tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .n { font-size: 11px; background: var(--muted-bg); border-radius: 99px; padding: 1px 6px; margin-left: 4px; color: var(--ink-2); }

/* Forme */
label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 5px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid #d6d9d3; border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(242,183,5,.25); }
.filters input, .filters select { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .error, .errorlist { color: var(--danger); font-size: 12.5px; margin: 4px 0 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink); margin: 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.checklist ul, .checklist > div { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px 14px; }
.checklist label { font-weight: 500; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line-2); background: #fbfbf9; border-radius: 0 0 var(--radius) var(--radius); }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 4px 0 12px; }
.alert-box { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; }

/* Poruke */
.messages { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; max-width: 380px; }
.msg { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; gap: 10px; align-items: flex-start; animation: slidein .2s ease-out; }
.msg.error { background: var(--danger); }
.msg.warning { background: #8a5a00; }
.msg button { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; margin-left: auto; padding: 0; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }

/* Prazno stanje */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { color: #b8bfb4; margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

/* Lista upozorenja / stavke */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-danger { background: var(--danger); } .dot-warning { background: #e0a100; } .dot-info { background: var(--info); } .dot-success { background: var(--success); }
.progress { height: 7px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 14px; }

/* ===== Raspored (drag & drop) ===== */
.sched { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.pool { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
.pool .card-body { overflow-y: auto; padding: 10px; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.zone { min-height: 140px; display: flex; flex-direction: column; }
.zone .card-head { padding: 11px 14px; }
.zone-body { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; border-radius: 0 0 var(--radius) var(--radius); transition: background .12s; }
.zone-body.over, .pool-body.over { background: #fff8dc; outline: 2px dashed var(--accent); outline-offset: -4px; }
.zone .hint { color: #a3aaa0; font-size: 12.5px; text-align: center; padding: 18px 6px; border: 1.5px dashed var(--line); border-radius: 8px; }
.chip { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); cursor: grab; user-select: none; }
.chip:hover { border-color: #cfd3cb; box-shadow: var(--shadow); }
.chip.dragging { opacity: .45; }
.chip .grip { color: #b4bab1; }
.chip .nm { font-weight: 600; font-size: 13px; line-height: 1.2; }
.chip .meta { font-size: 11.5px; color: var(--muted); }
.chip .grow { flex: 1; min-width: 0; }
.chip.team { background: #f6f8fb; border-style: dashed; }
.chip.unavailable { cursor: default; opacity: .7; }
.chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 5px; }
.chip .x:hover { background: var(--muted-bg); color: var(--danger); }
.zone-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.daybar { display: flex; align-items: center; gap: 6px; }
.daybar input[type=date] { width: 160px; }
.daybar input[type=time] { width: 110px; }

/* ===== Prijava / registracija ===== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }
.auth-side { position: sticky; top: 0; height: 100vh; background: var(--side); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(242,183,5,.22), transparent 65%); }
.auth-side .stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, var(--side) 18px 36px); }
.auth-side h2 { font-size: 34px; line-height: 1.15; font-weight: 750; max-width: 460px; letter-spacing: -0.02em; }
.auth-side p { color: #aab5c0; max-width: 440px; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: #d5dce3; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points .icon { color: var(--accent); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #a87d00; font-weight: 750; margin-bottom: 8px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .form-grid .field { margin-bottom: 0; }
.steps { display: flex; gap: 8px; margin: 18px 0 20px; }
.steps .s { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps .s.on { background: var(--accent); }
.step-title { font-weight: 700; margin-bottom: 12px; }

/* ===== Mobilno ===== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3:not(.keep) { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px 50px; }
  .grid-2, .form-grid, .checks { grid-template-columns: 1fr; }
  .checklist ul, .checklist > div { grid-template-columns: 1fr 1fr; }
  .sched { grid-template-columns: 1fr; }
  .pool { position: static; max-height: 320px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .userchip .name { display: none; }
  .search input { min-width: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr 1fr; } .stat .num { font-size: 22px; } }

/* =====================================================================
   TEMA: tamnoplava + narandžasta, svijetli meni (v2)
   ===================================================================== */
:root {
  --ink: #0e2a3b;
  --ink-2: #33495a;
  --muted: #6c7a86;
  --line: #e1e6eb;
  --line-2: #edf1f4;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --accent: #f0862a;
  --accent-2: #f59a4a;
  --accent-ink: #0e2a3b;
  --accent-soft: #fdeee1;
  --muted-bg: #eef2f5;
  --side: #ffffff;
  --side-ink: #0e2a3b;
  --shadow: 0 1px 2px rgba(14,42,59,.05), 0 6px 18px rgba(14,42,59,.05);
}

/* Meni */
.sidebar { background: #fff; border-right: 1px solid var(--line); color: var(--ink); }
.brand { color: var(--ink); padding: 18px 16px 16px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14,42,59,.1), 0 3px 10px rgba(14,42,59,.1); }
.brand-mark .icon { color: var(--accent); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand-org { color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.nav { padding: 8px 12px 18px; }
.nav-group { color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 18px 10px 6px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.nav a { color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 10px 8px 14px; }
.nav a .icon { color: #4d6272; }
.nav a:hover { background: var(--muted-bg); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.nav a.active::before { left: -12px; top: 0; bottom: 0; width: 3px; border-radius: 0; background: var(--accent); }
.nav a.active .icon { color: var(--accent); }
.side-foot { border-top: 1px solid var(--line); display: grid; gap: 8px; }
.side-foot .btn-ghost { color: var(--ink) !important; }

/* Gornja traka */
.topbar { height: 66px; border-bottom: 1px solid var(--line); }
.topbar .title { font-size: 19px; font-weight: 700; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 650; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pill .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.pill .avatar.dark { background: var(--ink); color: #fff; }
.userchip { height: 38px; }

/* Dugmad, oznake, tabele */
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #18405a; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-2); }
.avatar { background: #fde7d4; color: #b95c12; }
.tag { background: var(--accent-soft); color: #9a4d0c; }
.page-head .count { background: transparent; border: 1.5px solid var(--accent); color: #b95c12; border-radius: 99px; min-width: 26px; text-align: center; }
.badge-dark { background: var(--ink); }
.card { border-color: var(--line); border-radius: 14px; }
.table th { background: #e9eef3; color: var(--ink); font-weight: 700; border-bottom: 1px solid #d9e1e8; }
.table-wrap { border-radius: 14px 14px 0 0; }
.tabs a.active, .tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs a.active, .tabs button.active { color: #b95c12; }
.stat .ico { background: var(--muted-bg); color: var(--ink); border-radius: 12px; }
.stat .ico.yellow { background: var(--accent-soft); color: var(--accent); }
.progress > span { background: var(--accent); }
.chip { border-left: 3px solid var(--accent); background: #fbf7f3; }
.chip.team { border-left-color: var(--info); }
.zone-body.over, .pool-body.over { background: var(--accent-soft); outline-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240,134,42,.22); }

/* Trake sa naslovima u formama (kao "DETALJI RADNIKA") */
.section-bar { display: flex; align-items: center; gap: 8px; margin: 0 -18px 16px; padding: 10px 18px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: linear-gradient(90deg, #0e2a3b, #145071); }
.section-bar .opt { margin-left: auto; font-style: italic; text-transform: none; letter-spacing: 0; opacity: .85; font-weight: 600; }
.form-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0 18px 18px; margin-bottom: 16px; background: #fff; }
.form-box .section-bar { margin: 0 -18px 16px; }

/* Prijava i registracija: bež pozadina sa mrežom */
.auth { display: flex; align-items: center; justify-content: center; padding: 40px 18px; min-height: 100vh;
  background-color: #f1ece3;
  background-image: linear-gradient(rgba(14,42,59,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(14,42,59,.06) 1px, transparent 1px);
  background-size: 32px 32px; }
.auth-box { width: 100%; max-width: 1000px; display: grid; grid-template-columns: 1fr 1.05fr; background: #fbfaf7; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(14,42,59,.15); border: 1px solid #e6dfd3; }
.auth-box.single { max-width: 660px; grid-template-columns: 1fr; }
.auth-side { position: relative; height: auto; min-height: 560px; padding: 36px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(circle at 80% 15%, rgba(240,134,42,.35), transparent 45%), linear-gradient(160deg, #123a52, #0b2231 70%); }
.auth-side::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.auth-side .stripes { display: none; }
.auth-side h2 { font-size: 32px; }
.auth-side .pill-tag { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 3px 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.auth-side .brand { padding: 0; border: 0; color: #fff; }
.auth-side .brand-name { color: #fff; }
.auth-main { padding: 44px 46px; display: block; }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head .brand-mark { margin: 0 auto 10px; width: 56px; height: 56px; border-radius: 15px; }
.auth-head .brand-name { font-size: 18px; text-transform: none; letter-spacing: 0; }
.eyebrow { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; }
.auth-card h1 { font-size: 28px; color: var(--ink); }
.auth-card { max-width: none; }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password] { background: #fff; }
.auth .link { color: #c4650f; font-weight: 650; text-decoration: none; }
@media (max-width: 860px) {
  .auth-box { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 28px 22px; }
  .topbar .title { font-size: 16px; }
  .pill.org { display: none; }
}
