/* ═══════════════════════════════════════════════════════════════════════════════════════
   Izgled stranica prijave — preslika eracun.eposlovanje.hr/Client/Login (Metronic „md").
   Vrijednosti su preuzete iz NJIHOVOG CSS-a (login.min.css, components-md.min.css,
   bootstrap.min.css), ne procijenjene sa slike: tamna podloga #364150, bijela kartica radijusa
   7 px, tirkizni naslov i gumb #32c5d2, popunjena polja #dde3ec bez oznaka, traka #6c7a8d.

   JEDINO mjesto za ove stilove. Dotad je svaka auth stranica nosila vlastitu kopiju u <style>
   bloku — četiri kopije koje su se razilazile, a odjava je ostajala bez ijedne kad se na nju
   stiglo izravno. Sve je zatvoreno pod .epos-auth (AuthLayout), pa ništa ne curi u aplikaciju.
   ═══════════════════════════════════════════════════════════════════════════════════════ */

.epos-auth {
    /* flow-root: gornji rub loga inače „probije" kroz omotač (margin-collapse) i iznad tamne
       podloge ostane traka svijetle pozadine aplikacije. */
    display: flow-root;
    min-height: 100vh;
    background: #364150;
    padding: 0 16px 30px;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857;
    color: #333;
}

.epos-auth-logo {
    margin: 60px auto 0;
    padding: 15px;
    text-align: center;
}
.epos-auth-logo img { display: inline-block; }

/* ── Kartica ─────────────────────────────────────────────────────────────────────────── */
.epos-auth .katica-auth-card {
    position: relative;
    box-sizing: border-box;
    width: 400px;
    max-width: 100%;
    margin: 40px auto 10px;
    padding: 10px 30px 30px;
    overflow: hidden;
    background: #fff;
    border: none;
    border-radius: 7px;
    box-shadow: none;
    animation: epos-auth-ulaz 0.3s ease-out;
}

.epos-auth-title {
    margin: 20px 0 25px;
    color: #32c5d2;
    text-align: center;
    font-family: inherit;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
}

.epos-auth-hint {
    margin: 0 0 15px;
    color: #999;
}

/* ── Polja ───────────────────────────────────────────────────────────────────────────────
   Original nema oznaka iznad polja — samo placeholder. Oznaka ostaje u DOM-u za čitače
   zaslona, ali vizualno skrivena, pa pristupačnost ne pada zbog izgleda. */
.epos-auth .katica-auth-field {
    position: relative;
    margin-bottom: 15px;
}
.epos-auth .katica-auth-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* MudTextField (Outlined) preodjeven u popunjeno polje form-control-solid. Rub se boji s
   !important jer MudBlazor na hover/focus sam postavlja tamni i deblji rub. */
.epos-auth .katica-auth-field .mud-input.mud-input-outlined {
    min-height: 43px;
    background: #dde3ec;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #8290a3;
}
.epos-auth .katica-auth-field .mud-input-outlined-border {
    border: 1px solid #dde3ec !important;
    border-radius: 4px !important;
}
.epos-auth .katica-auth-field .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border: 1px solid #c3ccda !important;
}
.epos-auth .katica-auth-field input.mud-input-slot {
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    font-family: inherit;
    font-size: 14px;
    color: #8290a3;
}
.epos-auth .katica-auth-field input.mud-input-slot::placeholder {
    color: #8290a3;
    opacity: 1;
}
.epos-auth .katica-auth-field .mud-input-adornment .mud-icon-root { color: #8290a3; }

.epos-auth .katica-auth-field.is-error .mud-input-outlined-border { border-color: #e73d4a !important; }
.epos-auth .katica-auth-field.is-buzzing-a { animation: epos-auth-trzaj-a 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.epos-auth .katica-auth-field.is-buzzing-b { animation: epos-auth-trzaj-b 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* ── Red s gumbom (form-actions) ──────────────────────────────────────────────────────── */
.epos-auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    clear: both;
    margin: 0 -30px;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

/* Zadnji red forme bez crte ispod — kao .forget-form .form-actions u originalu. */
.epos-auth-actions.epos-auth-actions--kraj {
    border-bottom: 0;
    padding-bottom: 0;
}

/* ── Gumb „btn green uppercase" ───────────────────────────────────────────────────────── */
.epos-auth .katica-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 20px;
    background: #32c5d2;
    color: #fff;
    border: 1px solid #32c5d2;
    border-radius: 2px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.44;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.18);
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s;
    letter-spacing: normal;
}
.epos-auth .katica-btn-primary:hover:not(:disabled) {
    background: #26a1ab;
    border-color: #2499a3;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.26);
    filter: none;
    transform: none;
}
.epos-auth .katica-btn-primary:disabled {
    opacity: 0.65;
    box-shadow: none;
    cursor: not-allowed;
}

/* Sporedni gumb („btn-default" iz originala): bijeli, sivi tekst, isti oblik kao glavni. */
.epos-auth .katica-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 20px;
    background: #fff;
    color: #6c7a8d;
    border: 1px solid #dde3ec;
    border-radius: 2px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.44;
    text-transform: uppercase;
    cursor: pointer;
}
.epos-auth .katica-btn-outline:hover:not(:disabled) { background: #fafaff; color: #45b6af; }

/* Prijedlog ispravka e-adrese („Jeste li mislili …?") — alert-info iz originala. */
.epos-auth .katica-email-suggestion {
    margin: -8px 0 15px;
    padding: 8px 12px;
    background: #e0ebf9;
    color: #327ad5;
    border-radius: 2px;
    font-size: 13px;
    cursor: pointer;
}
.epos-auth .katica-email-suggestion:hover { background: #d0e1f6; }

.epos-auth .katica-auth-link {
    color: #337ab7;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}
.epos-auth .katica-auth-link:hover {
    color: #23527c;
    text-decoration: underline;
}

/* ── Traka „REGISTRIRAJ SE" (create-account) ──────────────────────────────────────────── */
.epos-auth-footer {
    margin: 0 -30px -30px;
    padding: 15px 0 17px;
    text-align: center;
    background: #6c7a8d;
    border-radius: 0 0 7px 7px;
}
.epos-auth-footer a {
    display: inline-block;
    margin-top: 5px;
    color: #c3cedd;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
}
.epos-auth-footer a:hover { color: #fff; }

/* ── Obavijesti (alert-danger / alert-warning) ────────────────────────────────────────── */
.epos-auth .katica-bn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    border: 0;
    border-radius: 2px;
    font-size: 14px;
    line-height: 1.42857;
}
.epos-auth .katica-bn-d { background: #fbe1e3; color: #e73d4a; }
.epos-auth .katica-bn-w { background: #f9e491; color: #c29d0b; }
.epos-auth .katica-bn-s { background: #abe7ed; color: #27a4b0; }

/* ── Vanjske prijave ──────────────────────────────────────────────────────────────────── */
.epos-auth-sso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.epos-auth-sso .epos-auth-certilia img { display: block; max-width: 100%; height: auto; }
.epos-auth .katica-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 256px !important;
    max-width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dde3ec;
    border-radius: 2px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.epos-auth .katica-social-btn:hover { box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15); transform: none; }
.epos-auth .katica-social-google { background: #fff; color: #374151; }
.epos-auth .katica-social-certilia { background: #2a7ab5; color: #fff; border-color: #2a7ab5; }
.epos-auth .katica-social-cert { background: #364150; color: #fff; border-color: #364150; }
.epos-auth .katica-social-iskaznica { background: #6c7a8d; color: #fff; border-color: #6c7a8d; }

.epos-auth .katica-iskaznica-panel {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    background: #f5f7fa;
    border: 1px solid #dde3ec;
    border-radius: 2px;
}

/* ── Zastavica jezika (gornji desni kut kartice) ──────────────────────────────────────── */
.epos-auth .katica-auth-lang-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    background: #fff;
    border: 1px solid #dde3ec;
    border-radius: 4px;
    line-height: 0;
    cursor: pointer;
}
.epos-auth .katica-auth-lang-toggle:hover { border-color: #c3ccda; }
.epos-auth .katica-auth-lang-toggle:focus-visible { outline: 2px solid #32c5d2; outline-offset: 2px; }

/* ── Mobitel (original: ≤ 440 px) ─────────────────────────────────────────────────────── */
@media (max-width: 440px) {
    .epos-auth-logo,
    .epos-auth .katica-auth-card { margin-top: 10px; }
    .epos-auth .katica-auth-card { padding-left: 20px; padding-right: 20px; }
    .epos-auth-actions,
    .epos-auth-footer { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
    .epos-auth-title { font-size: 22px; }
}

@keyframes epos-auth-ulaz {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Dvije jednake animacije pod različitim imenom: preglednik tek na PROMJENU imena ponovno
   odigra trzaj, pa se svaka nova greška naizmjence veže na -a i -b. */
@keyframes epos-auth-trzaj-a {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); } 25% { transform: translateX(10px); }
    40% { transform: translateX(-7px); } 55% { transform: translateX(7px); }
    70% { transform: translateX(-4px); } 85% { transform: translateX(4px); }
}
@keyframes epos-auth-trzaj-b {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); } 25% { transform: translateX(10px); }
    40% { transform: translateX(-7px); } 55% { transform: translateX(7px); }
    70% { transform: translateX(-4px); } 85% { transform: translateX(4px); }
}
