/* The new sign-in pages (Views/Account/Nu, Nu/NewUiLogin.cs), concept C "Iza stakla" (design/concepts/17-prijava.html):
   the form on frosted glass over the new app frame (frame B: full menu, list card), drawn as shapes only. /Preview3 tokens
   (docs/design/smjernice.html): BI orange for the one main action, Metronic blue for focus, Poppins, Phosphor. */
.an{
  /* the tokens come from nu-tokens.css (Views/Account/Nu/_Layout loads it first); never redefined here */
  margin:0; font-family:var(--font); color:var(--ink); background:var(--page); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased;
}
.an *{box-sizing:border-box}
.an [hidden]{display:none!important}
.an a{color:var(--info-ink); text-decoration:none}
.an a:hover{text-decoration:underline}
.an :focus-visible{outline:2px solid var(--info-ink); outline-offset:2px}

/* ---- the app behind the glass (decoration, aria-hidden) */
.an-app{position:fixed; inset:0; display:grid; grid-template-columns:248px 1fr; overflow:hidden}
.an-menu{background:var(--surface); border-right:1px solid var(--line); padding:18px 12px; display:flex; flex-direction:column; gap:2px}
.an-menu-logo{padding:4px 10px 18px} .an-menu-logo img{height:24px; display:block}
.an-org{display:flex; gap:10px; align-items:center; border:1px solid var(--line); border-radius:10px; padding:8px 10px; margin:0 0 14px}
.an-sq{width:30px; height:30px; border-radius:8px; background:var(--brand-t); flex:none}
.an-org-t{flex:1; display:flex; flex-direction:column; gap:6px} .an-org-t .an-bar:last-child{width:50%; height:7px}
.an-mi{display:flex; gap:11px; align-items:center; padding:8px 10px; border-radius:8px; color:var(--sub); font-size:13px; font-weight:500; white-space:nowrap}
.an-mi i{font-size:18px; color:var(--edge)}
.an-mi.on{background:var(--page); color:var(--ink); font-weight:600} .an-mi.on i{color:var(--info)}
.an-mi-foot{margin-top:auto}
.an-main{padding:22px 28px; overflow:hidden}
.an-head{display:flex; align-items:center; gap:12px; margin-bottom:18px}
.an-bar-t{width:120px; height:14px} .an-sp{flex:1}
.an-pill{height:36px; border-radius:8px; background:var(--surface); border:1px solid var(--line); width:220px}
.an-pill-o{width:120px; background:var(--brand); border-color:var(--brand)}
.an-kpis{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px}
.an-kpi{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; display:flex; flex-direction:column; gap:12px}
.an-kpi .an-bar:first-child{width:50%} .an-bar-big{height:18px; width:70%; background-color:var(--line)}
.an-list{background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow:hidden}
.an-r{display:grid; grid-template-columns:90px 1.4fr 1fr 1fr 110px; gap:18px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line2)}
.an-r .an-bar:nth-child(2){width:80%} .an-r .an-bar:nth-child(3){width:60%} .an-r .an-bar:nth-child(4){width:70%}
.an-r-h{background:var(--thead); padding:10px 16px} .an-r-h .an-bar{height:7px; background-color:var(--line)}
.an-bar{display:block; height:9px; border-radius:var(--r-xs); background-color:var(--line);
  background-image:linear-gradient(90deg,transparent 0,rgba(255,255,255,.65) 50%,transparent 100%); background-size:200% 100%; background-repeat:no-repeat; animation:an-sh 2.4s ease-in-out infinite}
.an-chip{height:20px; border-radius:999px; width:74px; background-color:var(--info-t)}
.an-chip-1{background-color:var(--ok-t)} .an-chip-2{background-color:var(--brand-t)}
.an-tabs{display:none}
@keyframes an-sh{from{background-position:150% 0}to{background-position:-50% 0}}

/* ---- the glass and the card */
.an-glass{position:fixed; inset:0; overflow:auto; display:grid; place-items:center; padding:16px;
  background:rgba(244,245,248,.28); -webkit-backdrop-filter:blur(5px) saturate(1.05); backdrop-filter:blur(5px) saturate(1.05);
  transition:background .35s var(--ease), -webkit-backdrop-filter .35s var(--ease), backdrop-filter .35s var(--ease)}
.an-card{width:100%; max-width:404px; background:var(--surface); border-radius:var(--r-xl); padding:28px; border:1px solid rgba(231,233,240,.9);
  box-shadow:var(--shadow-sm); transition:transform .35s var(--ease), opacity .35s ease}
.an-card-top{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:22px}
.an-card-top img{height:26px; display:block}
.an-lang{display:flex; gap:2px; background:var(--page); border-radius:var(--r-md); padding:3px}
.an-lang a{font-size:12px; font-weight:500; color:var(--muted); padding:0 9px; border-radius:6px; min-height:30px; min-width:32px; display:grid; place-items:center}
.an-lang a:hover{color:var(--ink); text-decoration:none}
.an-lang a.on{background:var(--surface); color:var(--ink); font-weight:600; box-shadow:0 0 0 1px var(--line)}
.an-h{font-size:22px; font-weight:600; margin:0 0 4px; letter-spacing:-.01em; line-height:1.3}
.an-lead{color:var(--muted); margin:0 0 20px; font-size:13px}
.an-fld{display:block; margin:0 0 14px}
.an-fld > span:first-child{display:flex; justify-content:space-between; gap:10px; font-size:13px; font-weight:500; color:var(--sub); margin-bottom:6px}
.an-in{position:relative; display:block}
.an-in > i{position:absolute; left:13px; top:50%; transform:translateY(-50%); font-size:18px; color:var(--edge); pointer-events:none}
.an-in input{width:100%; height:44px; border:1px solid var(--edge); border-radius:8px; padding:0 14px 0 40px; font:400 15px var(--font); color:var(--ink); background:var(--surface); outline:none; transition:border-color .15s, box-shadow .15s}
.an-in input:focus{border-color:var(--info); box-shadow:0 0 0 1px var(--info),0 0 0 4px var(--info-t)}
.an-in input:focus-visible{outline:none}
.an-in input[aria-invalid=true]{border-color:var(--bad)}
.an-in input.an-pw{padding-right:48px}
.an-eye{position:absolute; right:4px; top:3px; width:38px; height:38px; border:0; background:transparent; border-radius:calc(var(--r-md) - 3px); color:var(--muted); font-size:17px; cursor:pointer; display:grid; place-items:center}
.an-eye:hover{background:var(--page); color:var(--ink)}
.an-caps{display:flex; gap:6px; align-items:center; font-size:12.5px; color:var(--warn); margin:-6px 0 12px}
.an-btn{width:100%; height:44px; border-radius:8px; border:1px solid transparent; font:600 15px var(--font); cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:background .15s, transform .15s; text-decoration:none}
.an-btn:hover{text-decoration:none}
.an-btn:active{transform:translateY(1px)}
.an-btn:disabled{opacity:.7; cursor:default}
.an-btn + .an-btn{margin-top:8px}
.an-btn-pri{background:var(--brand); color:var(--brand-ink)}
.an-btn-pri:hover{background:var(--brand-d)}
/* Microsoft's sign-in button rules: white, #8C8C8C edge, the four squares */
.an .an-btn-ms{background:var(--surface); border-color:color-mix(in srgb,var(--ink) 55%,white); color:#1F1F1F; font-weight:500}
.an-btn-ms:hover{background:var(--page)}
.an-ms{width:19px; height:19px; display:grid; grid-template-columns:1fr 1fr; gap:2px; flex:none}
.an-ms i{display:block} .an-ms i:nth-child(1){background:#F25022} .an-ms i:nth-child(2){background:#7FBA00} .an-ms i:nth-child(3){background:#00A4EF} .an-ms i:nth-child(4){background:#FFB900}
.an-or{display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12.5px; margin:16px 0}
.an-or::before,.an-or::after{content:""; flex:1; height:1px; background:var(--line)}
.an-alert{display:flex; gap:10px; background:var(--bad-t); color:var(--bad); border-radius:8px; padding:10px 12px; margin:0 0 16px; font-size:13px}
.an-alert i{font-size:18px; color:var(--bad); flex:none; margin-top:1px}
.an-back{display:inline-flex; gap:6px; align-items:center; color:var(--sub)!important; font-weight:500; margin-bottom:16px; min-height:32px; font-size:13px}
.an-ok{width:48px; height:48px; border-radius:var(--r-pill); background:var(--ok-t); color:color-mix(in srgb,var(--ok) 95%,white); display:grid; place-items:center; font-size:22px; margin-bottom:14px}
.an-links{margin:14px 0 0; font-size:13px; text-align:center}
.an-ver{color:var(--muted); font-size:12px; text-align:center; margin:18px 0 0}

/* signed in: the glass clears and the card lifts away while the app opens */
.an.an-done .an-glass{background:rgba(244,245,248,0); -webkit-backdrop-filter:blur(0); backdrop-filter:blur(0)}
.an.an-done .an-card{transform:translateY(-16px) scale(.97); opacity:0}
.an.an-done .an-bar{animation:none}
@media (prefers-reduced-motion:reduce){ .an *{animation:none!important; transition:none!important} }

/* ---- phone: the phone frame behind (56 px bar, rows, bottom tab bar), the card as a sheet from the bottom */
@media (max-width:760px){
  .an-app{grid-template-columns:1fr; grid-template-rows:56px 1fr 64px}
  .an-menu{flex-direction:row; align-items:center; padding:0 16px; border-right:0; border-bottom:1px solid var(--line)}
  .an-menu .an-org,.an-menu .an-mi{display:none}
  .an-menu-logo{padding:0}
  .an-main{padding:14px 16px}
  .an-head .an-pill{display:none}
  .an-kpis{grid-template-columns:1fr 1fr} .an-kpi:nth-child(n+3){display:none}
  .an-r{grid-template-columns:1fr 70px}
  .an-r > :first-child,.an-r .an-bar:nth-child(3),.an-r .an-bar:nth-child(4){display:none}
  .an-tabs{display:flex; background:var(--surface); border-top:1px solid var(--line); justify-content:space-around; align-items:center}
  .an-tabs i{font-size:22px; color:var(--edge)} .an-tabs i.on{color:var(--info)}
  .an-glass{place-items:end center; padding:0}
  .an-card{max-width:none; border-radius:var(--r-xl) var(--r-xl) 0 0; padding:20px 16px 24px}
  .an-in input{height:48px; font-size:16px}
  .an-btn{height:48px}
}
