/* Stranice naloga (static SSR, bez MudBlazor-a – portal 3.3, 3a): podeljen ekran i „Moj nalog“.
   Boje su promenljive --vns-* iz app.css (iste kao Components/Theme/VnsTheme.cs); font se učitava u app.css. */

/* ---------- Podeljen ekran ---------- */
.acc-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    background: var(--vns-bg);
}

.acc-brand-panel {
    position: relative;
    overflow: hidden;
    color: var(--vns-hero-text);
    background:
        radial-gradient(520px 360px at 85% 10%, var(--vns-hero-glow), transparent 70%),
        radial-gradient(420px 300px at 0% 100%, rgba(240, 83, 34, .16), transparent 70%),
        linear-gradient(160deg, var(--vns-hero-from), var(--vns-hero-to));
}

.acc-brand-panel__waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: var(--vns-acc-bright);
    pointer-events: none;
}

.acc-brand-panel__waves path:nth-child(1) { opacity: .07; }
.acc-brand-panel__waves path:nth-child(2) { opacity: .09; }
.acc-brand-panel__waves path:nth-child(3) { opacity: .12; }

.acc-brand-panel__inner {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    padding: 48px 56px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.acc-brand-panel__pitch { margin: auto 0; display: flex; flex-direction: column; gap: 28px; max-width: 460px; }

.acc-brand-panel__lead {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #fff;
}

.acc-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.acc-benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--vns-hero-muted); }
.acc-benefits strong { color: #fff; font-weight: 600; }

.acc-benefits__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 83, 34, .16);
    color: var(--vns-on-bar);
    border: 1px solid rgba(240, 83, 34, .28);
}

.acc-brand-panel__footer { font-size: 12px; color: var(--vns-hero-muted); }
.acc-brand-panel__footer strong { color: #fff; font-weight: 600; }

.acc-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 24px;
    box-sizing: border-box;
}

/* ---------- Brend (logo + naziv) ---------- */
.acc-brand { display: flex; align-items: center; gap: 12px; }

.acc-brand__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.acc-brand__logo img { height: 32px; width: auto; }
.acc-brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.acc-brand__name { font-weight: 700; font-size: 18px; letter-spacing: .04em; color: #fff; }
.acc-brand__full { font-size: 12px; color: var(--vns-hero-muted); }

/* ---------- Kartica i forma ---------- */
.acc-card {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--vns-card-shadow);
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.acc-heading { display: flex; flex-direction: column; gap: 6px; }
.acc-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.acc-subtitle { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.acc-muted { margin: 0; color: var(--vns-muted); font-size: 14px; line-height: 1.5; }
.acc-card p { margin: 0; line-height: 1.5; }

.acc-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vns-acc-soft);
    color: var(--vns-acc);
}

.acc-badge--error { background: #FBE3EA; color: #961537; }

.acc-form { display: flex; flex-direction: column; gap: 16px; }

.acc-field { display: flex; flex-direction: column; gap: 6px; }
.acc-field label { font-size: 13.5px; font-weight: 600; }

/* Polje sa ikonom (i dugmetom za lozinku). */
.acc-input { position: relative; display: flex; align-items: center; }

.acc-input__icon {
    position: absolute;
    left: 12px;
    color: #80869A;
    pointer-events: none;
}

.acc-input input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 42px;
    border: 1px solid #D6D9DF;
    border-radius: 10px;
    font: inherit;
    font-size: 14.5px;
    color: var(--vns-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}

.acc-input input:hover { border-color: #B9BEC8; }

.acc-input input:focus {
    outline: none;
    border-color: var(--vns-acc-bright);
    box-shadow: 0 0 0 3px rgba(240, 83, 34, .22);
}

.acc-input:focus-within .acc-input__icon { color: var(--vns-acc); }
.acc-input input.invalid { border-color: #961537; }

.acc-input__toggle {
    position: absolute;
    right: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #80869A;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acc-input__toggle:hover { background: #F2F3F5; color: var(--vns-text); }
.acc-input__toggle:focus-visible { outline: 2px solid var(--vns-acc); outline-offset: 0; }
.acc-input__hide { display: none; }
.acc-input__toggle[aria-pressed="true"] .acc-input__show { display: none; }
.acc-input__toggle[aria-pressed="true"] .acc-input__hide { display: block; }

.acc-hint { font-size: 12.5px; color: var(--vns-muted); }
.validation-message { color: #961537; font-size: 12.5px; }

.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.acc-check input { width: 16px; height: 16px; accent-color: var(--vns-acc); }

.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--vns-acc);
    color: #fff !important;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    box-sizing: border-box;
    transition: background .15s, box-shadow .15s;
}

.acc-btn:hover { background: var(--vns-acc-hover); }
.acc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(240, 83, 34, .35); }
.acc-btn--block { align-self: stretch; width: 100%; }
.acc-btn--outline { background: #fff; color: var(--vns-text) !important; border: 1px solid #D6D9DF; }
.acc-btn--outline:hover { background: #F2F3F5; }

.acc-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.acc-link:hover { text-decoration: underline; }

.acc-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.acc-alert svg { flex-shrink: 0; margin-top: 1px; }
.acc-alert--error { background: #FBE3EA; color: #961537; border-left: 4px solid #961537; }
.acc-alert--success { background: #DDF3E7; color: #0D5E36; border-left: 4px solid #0D5E36; }
.acc-alert--warning { background: #FFF3C4; color: #5A4500; border-left: 4px solid #8A6100; }

.acc-footer { font-size: 12px; color: #80869A; }
.acc-footer strong { color: var(--vns-muted); font-weight: 600; }
.acc-footer--narrow { display: none; }

/* ---------- Uži ekran: panel postaje traka sa logom ---------- */
@media (max-width: 900px) {
    .acc-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .acc-brand-panel__inner { padding: 16px 20px; }
    .acc-brand-panel__pitch, .acc-brand-panel__footer, .acc-brand-panel__waves { display: none; }
    .acc-main { justify-content: flex-start; padding: 24px 16px 32px; }
    .acc-card { padding: 28px 22px 24px; }
    .acc-footer--narrow { display: block; }
}

/* ---------- Moj nalog ---------- */
.acc-shell { min-height: 100vh; background: var(--vns-bg); }

.acc-bar {
    height: 64px;
    background: var(--vns-bar);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
}

.acc-bar__brand { display: flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none; }
.acc-bar__brand .acc-brand__logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.acc-bar__brand .acc-brand__logo img { height: 30px; }
.acc-bar__spacer { flex-grow: 1; }

.acc-bar__link {
    color: var(--vns-bar-muted) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
}

.acc-bar__link:hover { color: #fff !important; background: rgba(255,255,255,.08); }

.acc-manage { max-width: 880px; margin: 0 auto; padding: 28px 16px; display: flex; flex-direction: column; gap: 10px; }
.acc-manage .acc-title { font-size: 28px; }

.acc-card--wide { max-width: 880px; margin-top: 12px; padding: 0; flex-direction: row; gap: 0; overflow: hidden; }

.acc-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    padding: 16px 12px;
    border-right: 1px solid var(--vns-line);
}

.acc-tabs__item {
    padding: 10px 14px;
    border-radius: 10px;
    color: #3D4250 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.acc-tabs__item:hover { background: #F2F3F5; }
.acc-tabs__item.active { background: var(--vns-acc-soft); color: var(--vns-acc) !important; font-weight: 600; }

.acc-manage__body { flex-grow: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.acc-manage__body .acc-input input { padding: 0 12px; }

.acc-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 14px; }
.acc-details dt { color: var(--vns-muted); font-weight: 500; }
.acc-details dd { margin: 0; font-weight: 600; }

@media (max-width: 700px) {
    .acc-card--wide { flex-direction: column; }
    .acc-tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--vns-line); min-width: 0; }
    .acc-bar .acc-brand__text { display: none; }
}
