/* =====================================================================
   eMomak — ulaz (emomak.app). Isti vizuelni identitet kao emomak.com:
   papir, ugljeno zelena, mesing, Manrope, Brku. Jedan mirni portal.
   ===================================================================== */
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Helvetica Neue'), local('HelveticaNeue'), local('Segoe UI'), local('Arial');
  size-adjust: 102%; ascent-override: 98%; descent-override: 28%; line-gap-override: 0%;
}

:root {
  --green-900: #16211b;
  --green-700: #283b30;
  --green-600: #344c3d;
  --green-050: #e8efe9;
  --brass-700: #86601f;
  --brass-500: #c7903d;
  --brass-300: #e2c08a;
  --paper: #f7f6f2;
  --paper-2: #f0eee7;
  --surface: #ffffff;
  --line: #e5e4df;
  --ink: #202321;
  --ink-2: #4c524e;
  --ink-3: #646a65;
  --on-dark: #f2f1ec;
  --on-dark-2: rgba(242, 241, 236, .78);
  --danger: #b23b3b;
  --sans: 'Manrope', 'Manrope Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--sans); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 520px at 50% -140px, rgba(52, 76, 61, .10), transparent 70%),
    var(--paper);
}
:focus-visible { outline: 3px solid var(--brass-500); outline-offset: 3px; border-radius: 8px; }
h1, p { margin: 0; }

.stage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px calc(20px + env(safe-area-inset-bottom));
}

/* ------------------------------------------------ portal */
.portal {
  width: 100%; max-width: 440px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(22, 33, 27, .06), 0 30px 70px rgba(22, 33, 27, .14);
}
.portal-head {
  position: relative; text-align: center; padding: 30px 24px 26px;
  background: var(--green-900); color: var(--on-dark);
}
.portal-head::after { /* tanka mesingana linija, kao rub podmetača */
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-500), transparent); opacity: .7;
}
.brku {
  width: 176px; aspect-ratio: 1122 / 806; margin: 0 auto;
  background-color: var(--brass-300);
  -webkit-mask: url('assets/brand/emomak-brku-mascot-only.svg') center / contain no-repeat;
  mask: url('assets/brand/emomak-brku-mascot-only.svg') center / contain no-repeat;
}
.wordmark { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.wordmark b { color: var(--brass-300); font-weight: 800; }
.slogan { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--on-dark-2); }

.portal-body { padding: 28px 24px 26px; }
h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.028em; line-height: 1.15; }
.lead { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

.venue-form { margin-top: 22px; }
.label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.field {
  display: flex; align-items: center; min-height: 56px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(52, 76, 61, .13); background: #fff; }
.field.is-invalid { border-color: var(--danger); }
.field input {
  flex: 1; min-width: 0; height: 54px; padding: 0 4px 0 16px; border: 0; background: transparent;
  font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); outline: none;
}
.field input::placeholder { color: #9ba19c; font-weight: 600; }
.suffix { flex: none; padding: 0 16px 0 2px; font-size: 16px; font-weight: 700; color: var(--ink-3); }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; }
.hint span { color: var(--green-600); font-weight: 800; }
.error { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--danger); }

.btn {
  margin-top: 18px; width: 100%; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-600); color: #fff; font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 1px 2px rgba(22, 33, 27, .08), 0 8px 20px rgba(52, 76, 61, .22);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-700); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.portal-foot {
  display: grid; gap: 8px; padding: 18px 24px 22px; border-top: 1px dashed var(--line);
  background: var(--paper); font-size: 14px; color: var(--ink-2);
}
.portal-foot a { color: var(--green-600); font-weight: 800; text-decoration: none; white-space: nowrap; }
.portal-foot a:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

.legal { margin-top: 18px; font-size: 12px; color: var(--ink-3); }

@media (min-width: 700px) {
  .portal { max-width: 480px; }
  .portal-head { padding: 36px 32px 30px; }
  .brku { width: 200px; }
  .portal-body { padding: 32px 36px 30px; }
  h1 { font-size: 30px; }
  .portal-foot { padding: 20px 36px 24px; }
}
@media (max-width: 359px) {
  .field input { font-size: 16px; padding-left: 12px; }
  .suffix { font-size: 14px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .field, .btn, .btn .arrow { transition: none; }
  .btn:hover, .btn:hover .arrow { transform: none; }
}
