/* Zajednički stil za javne stranice naloga: Prijava, Zatraži pristup, Zaboravljena lozinka, Nova lozinka.
   Lijevi brand panel dolazi iz Views/Account/_AuthBrand.cshtml, linkovi ispod forme iz _AuthFooter.cshtml. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --lp-teal: #14b0ac;
    --lp-teal-dark: #0e8d8a;
    --lp-teal-deep: #0a6f6c;
    --lp-teal-soft: #e3f6f5;
    --lp-ink: #151a24;
    --lp-ink-soft: #5b6072;
    --lp-mute: #9aa0ae;
    --lp-canvas: #f6f7f7;
    --lp-line: #e3e4e9;
    --lp-danger: #de3141;
    --lp-ok: #0f8a5f;
}

html, body { height: 100%; }
.lp-body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--lp-canvas);
    color: var(--lp-ink);
}

/* ─── Animacije ─────────────────────────────────────────── */
@keyframes lpRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.lp-rise { opacity: 0; animation: lpRise .6s cubic-bezier(.22,1,.36,1) both; }
.lp-d1 { animation-delay: .05s; } .lp-d2 { animation-delay: .13s; } .lp-d3 { animation-delay: .21s; }
.lp-d4 { animation-delay: .29s; } .lp-d5 { animation-delay: .37s; } .lp-d6 { animation-delay: .45s; }
@keyframes lpShake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(2px); } 30%,50%,70% { transform: translateX(-4px); } 40%,60% { transform: translateX(4px); } }
.lp-shake { animation: lpRise .4s ease both, lpShake .5s .1s ease; }
@keyframes lpPop { from { transform: scale(0); } to { transform: scale(1); } }

/* ─── Split ─────────────────────────────────────────────── */
.lp-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }

/* ─── Brand panel ───────────────────────────────────────── */
.lp-brand {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 40px 56px;
    background: linear-gradient(155deg, var(--lp-teal-deep) 0%, var(--lp-teal) 100%);
    background-size: 180% 180%;
    animation: lpGradientDrift 14s ease-in-out infinite alternate;
    color: #fff;
}
@keyframes lpGradientDrift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.lp-brand-deco { position: absolute; inset: 0; pointer-events: none; transition: transform .35s ease-out; }
.lp-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); animation: lpRingBreathe 9s ease-in-out infinite; }
.lp-ring-1 { width: 520px; height: 520px; right: -180px; top: -160px; animation-duration: 11s; }
.lp-ring-2 { width: 360px; height: 360px; right: -80px; bottom: -140px; border-color: rgba(255,255,255,.10); animation-duration: 8s; animation-direction: reverse; }
.lp-ring-3 { width: 720px; height: 720px; right: -260px; top: 30%; border-color: rgba(255,255,255,.07); animation-duration: 16s; }
@keyframes lpRingBreathe { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.05) rotate(4deg); } }
.lp-orb { position: absolute; border-radius: 50%; filter: blur(30px); background: radial-gradient(circle, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 72%); animation: lpOrbDrift 13s ease-in-out infinite alternate; }
.lp-orb-1 { width: 180px; height: 180px; top: 12%; right: 18%; animation-duration: 12s; }
.lp-orb-2 { width: 120px; height: 120px; bottom: 18%; right: 40%; opacity: .7; animation-duration: 16s; animation-delay: -4s; }
@keyframes lpOrbDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-22px,18px) scale(1.12); } 100% { transform: translate(14px,-16px) scale(.94); } }

.lp-brand-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-logo-badge { display: inline-flex; align-items: center; background: #fff; border-radius: 22px; padding: 14px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.18); transition: transform .2s; }
.lp-logo-badge:hover { transform: translateY(-2px); }
.lp-brand-logo { display: block; height: 150px; width: auto; max-width: 100%; }
.lp-brand-home { color: rgba(255,255,255,.85); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.lp-brand-home:hover { color: #fff; text-decoration: none; }

.lp-brand-inner { position: relative; z-index: 1; max-width: 460px; }
.lp-brand-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #bdf2ef; margin-bottom: 14px; }
.lp-brand-title { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -.3px; margin-bottom: 14px; }
.lp-brand-lead { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.88); margin-bottom: 26px; }

.lp-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.lp-points li { display: flex; align-items: flex-start; gap: 12px; }
.lp-points .lp-pi { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.lp-points b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.lp-points span { display: block; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.78); }

/* koraci (Zatraži pristup) */
.lp-steps { list-style: none; counter-reset: lpk; display: flex; flex-direction: column; gap: 14px; }
.lp-steps li { counter-increment: lpk; display: flex; gap: 12px; align-items: flex-start; }
.lp-steps li::before { content: counter(lpk); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--lp-teal-dark); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.lp-steps b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.lp-steps span { display: block; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.78); }

.lp-brand-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; font-size: 12.5px; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.16); padding-top: 18px; }
.lp-brand-bottom a { color: #fff; text-decoration: none; }
.lp-brand-bottom a:hover { text-decoration: underline; }
.lp-brand-bottom .fa { margin-right: 5px; color: #bdf2ef; }
.lp-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ─── Form panel ────────────────────────────────────────── */
.lp-form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.lp-form-wrap { width: 100%; max-width: 390px; }
.lp-form-wrap--wide { max-width: 560px; }
.lp-form-head { margin-bottom: 24px; }
.lp-heading { color: var(--lp-ink); font-size: 26px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 6px; }
.lp-sub { color: var(--lp-ink-soft); font-size: 14px; line-height: 1.55; }

.lp-error-box { background: #fbe9ea; border: 1px solid #f3b7bc; border-radius: 10px; padding: 10px 14px; color: var(--lp-danger); font-size: 13px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px; }
.lp-error-box .fa { margin-top: 2px; flex-shrink: 0; }
.lp-error-box ul, .lp-valsum { list-style: none; margin: 0; padding: 0; }
.lp-info-box { background: var(--lp-teal-soft); border: 1px solid #bfe9e7; border-radius: 10px; padding: 11px 14px; color: #0b5f5d; font-size: 13px; line-height: 1.5; margin-bottom: 18px; display: flex; gap: 9px; }
.lp-info-box .fa { margin-top: 2px; flex-shrink: 0; }
.lp-field-err { color: var(--lp-danger); font-size: 11.5px; margin-top: 4px; display: block; }
.validation-summary-valid { display: none; }

.lp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lp-fg { margin-bottom: 14px; }
.lp-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--lp-ink-soft); margin-bottom: 6px; }
.lp-label small { font-weight: 400; color: var(--lp-mute); }
.lp-field { position: relative; margin-bottom: 16px; }
.lp-fg .lp-field { margin-bottom: 0; }
.lp-field-icon { position: absolute; left: 14px; top: 23px; transform: translateY(-50%); color: var(--lp-mute); font-size: 14px; pointer-events: none; z-index: 1; }
.lp-input {
    display: block; width: 100%; height: 46px;
    background: var(--lp-canvas); border: 1px solid var(--lp-line); border-radius: 10px;
    color: var(--lp-ink); padding: 0 42px 0 40px; font-size: 15px; outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.lp-input::placeholder { color: var(--lp-mute); text-transform: none; letter-spacing: normal; }
.lp-input:focus { border-color: var(--lp-teal); background: #fff; box-shadow: 0 0 0 3px rgba(20,176,172,.14); }
.lp-input[readonly] { color: var(--lp-ink-soft); background: #eef0f0; }
.lp-select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239aa0ae' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lp-input, .lp-btn { font-family: inherit; }
.lp-textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.5; }

.lp-eye { position: absolute; right: 12px; top: 23px; transform: translateY(-50%); background: none; border: none; color: var(--lp-mute); cursor: pointer; padding: 4px; font-size: 14px; line-height: 1; }
.lp-eye:hover { color: var(--lp-teal); }

/* jačina lozinke */
.lp-meter { display: flex; gap: 4px; margin-top: 8px; }
.lp-meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--lp-line); transition: background .2s; }
.lp-meter-txt { font-size: 11.5px; color: var(--lp-mute); margin-top: 5px; min-height: 14px; }

/* tip naloga (Zatraži pristup) */
.lp-tip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-tip label { position: relative; display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--lp-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 400; margin: 0; transition: border-color .15s, background .15s; }
.lp-tip input { position: absolute; opacity: 0; pointer-events: none; }
.lp-tip .lp-tip-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--lp-canvas); color: var(--lp-ink-soft); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .15s, color .15s; }
.lp-tip strong { display: block; font-size: 14px; color: var(--lp-ink); }
.lp-tip small { display: block; font-size: 12px; color: var(--lp-mute); line-height: 1.4; margin-top: 2px; }
.lp-tip label:has(input:checked) { border-color: var(--lp-teal); background: #f2fbfb; }
.lp-tip label:has(input:checked) .lp-tip-ico { background: var(--lp-teal); color: #fff; }
.lp-tip label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(20,176,172,.2); }

/* checkbox */
.lp-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.lp-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; user-select: none; font-weight: 400; margin: 0; }
.lp-check-input { position: absolute; opacity: 0; pointer-events: none; }
.lp-check-box { width: 16px; height: 16px; border: 1.5px solid #d5d7dd; border-radius: 4px; background: var(--lp-canvas); flex-shrink: 0; margin-top: 1px; transition: background .2s, border-color .2s; position: relative; }
.lp-check-input:checked + .lp-check-box { background: var(--lp-teal); border-color: var(--lp-teal); }
.lp-check-input:checked + .lp-check-box::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(45deg); }
.lp-check-input:focus-visible + .lp-check-box { box-shadow: 0 0 0 3px rgba(20,176,172,.2); }
.lp-check-label { color: var(--lp-ink-soft); font-size: 13px; line-height: 1.4; }

.lp-link { color: var(--lp-teal-dark); font-size: 13px; text-decoration: none; font-weight: 600; }
.lp-link:hover { color: var(--lp-teal); text-decoration: underline; }
.lp-link-muted { color: var(--lp-ink-soft); font-weight: 400; }

/* dugmad */
.lp-btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden;
    width: 100%; height: 48px; background: var(--lp-teal); border: none; border-radius: 10px;
    color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .3px; cursor: pointer; text-decoration: none;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(20,176,172,.35); margin-bottom: 18px;
}
.lp-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .5s ease; }
.lp-btn:hover::after { left: 130%; }
.lp-btn:hover, .lp-btn:focus { background: var(--lp-teal-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(20,176,172,.42); }
.lp-btn:active { transform: translateY(0); }
.lp-btn[disabled] { opacity: .7; cursor: wait; }
.lp-btn-ghost { background: #fff; color: var(--lp-teal-dark); border: 1.5px solid var(--lp-teal); box-shadow: none; }
.lp-btn-ghost:hover, .lp-btn-ghost:focus { background: #f2fbfb; color: var(--lp-teal-dark); box-shadow: none; }

.lp-divider { display: flex; align-items: center; gap: 12px; color: var(--lp-mute); font-size: 12.5px; margin: 6px 0 16px; }
.lp-divider::before, .lp-divider::after { content: ''; flex: 1; height: 1px; background: var(--lp-line); }

.lp-security-note { text-align: center; font-size: 12.5px; color: var(--lp-mute); }
.lp-security-note .fa { margin-right: 4px; }

/* uspjeh */
.lp-done { text-align: center; padding: 10px 0; }
.lp-done-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(20,176,172,.14); color: var(--lp-teal); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px; animation: lpPop .5s cubic-bezier(.2,1.4,.4,1) both; }
.lp-done-ico.err { background: #fbe9ea; color: var(--lp-danger); }
.lp-done .lp-sub { margin-bottom: 22px; }
.lp-next { text-align: left; background: var(--lp-canvas); border-radius: 12px; padding: 16px 18px; margin: 0 0 22px; }
.lp-next h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.lp-next ol { padding-left: 18px; font-size: 13px; color: var(--lp-ink-soft); line-height: 1.6; }

/* footer ispod forme */
.lp-foot { width: 100%; max-width: 560px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #eef0f2; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; }
.lp-foot a { color: var(--lp-ink-soft); text-decoration: none; }
.lp-foot a:hover { color: var(--lp-teal-dark); }
.lp-foot .fa { margin-right: 4px; color: var(--lp-mute); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
    .lp-brand { padding: 36px 40px; }
    .lp-brand-title { font-size: 26px; }
}
@media (max-width: 900px) {
    .lp-split { grid-template-columns: 1fr; min-height: 0; }
    .lp-brand { padding: 18px 20px 22px; gap: 14px; }
    .lp-brand-title { font-size: 20px; margin-bottom: 0; }
    .lp-brand-kicker, .lp-brand-lead, .lp-points, .lp-steps, .lp-brand-bottom { display: none; }
    .lp-brand-logo { height: 90px; }
    .lp-logo-badge { padding: 10px 16px; border-radius: 14px; }
    .lp-brand-home { display: none; }
    .lp-form-panel { justify-content: flex-start; padding: 26px 20px 34px; }
    .lp-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .lp-heading { font-size: 22px; }
    .lp-input { font-size: 16px; } /* iOS ne zumira na fokus tek od 16px */
    .lp-tip { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-rise { opacity: 1; animation: none; transform: none; }
    .lp-shake, .lp-brand, .lp-ring, .lp-orb { animation: none; }
    .lp-btn::after { display: none; }
    .lp-brand-deco { transition: none; }
}
