/* ============================================================
   Login / recuperació de contrasenya — redisseny 2026
   Pantalla completa (split), Bootstrap 5 + Font Awesome 6.
   Tot scoped a #loginwrapper (no afecta la resta d'intranet).
   NO es toca cap id/classe que faci servir el JS del login.
   Colors en hex (compatibilitat amb navegadors antics).
   ============================================================ */

/* ============================================================
   VARIABLES DE MARCA — canvia els colors del login aquí (un sol lloc)
   ============================================================ */
:root {
    /* gris fosc corporatiu (banner) */
    --lg-slate1: #3b434d;
    --lg-slate2: #2c3137;
    /* coral corporatiu (accions) */
    --lg-coral: #ef5b52;
    --lg-coral-top: #f26b62;   /* gradient dalt */
    --lg-coral-bot: #ec4f45;   /* gradient baix */
    --lg-coral-dark: #d9483f;  /* text/enllaços coral */
    --lg-coral-hover: #e0473d;
    --lg-coral-active: #c93a30;
    --lg-coral-08: rgba(239, 91, 82, .08);
    --lg-coral-14: rgba(239, 91, 82, .14);
    --lg-coral-16: rgba(239, 91, 82, .16);
    --lg-coral-18: rgba(239, 91, 82, .18);
    --lg-coral-55: rgba(239, 91, 82, .55);
    --lg-coral-72: rgba(239, 91, 82, .72);
    /* neutres */
    --lg-ink: #2b2f36;
    --lg-muted: #6b7280;
    --lg-line: #e3e8ee;
    --lg-field: #f6f8fb;
    /* estats */
    --lg-danger: #d64545;
    --lg-danger-bg: #fdecec;
    --lg-danger-text: #b52d2d;
    --lg-ok: #2f8a54;
    --lg-ok-bg: #e6f5ec;
    --lg-warn: #8a6d3b;
    --lg-warn-bg: #fdf3e2;
}


/* ---------- Base pantalla completa (sense imatge de fons) ---------- */
html, body.login { height: 100%; }
body.login {
    margin: 0;
    min-height: 100vh;
    background: #eef2f7;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.login #fonslogin { display: none; }

#loginwrapper {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: visible;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: stretch;
    align-items: stretch;
}
#loginwrapper *, #loginwrapper *::before, #loginwrapper *::after { box-sizing: border-box; }

/* ---------- Shell (split a tota la pantalla) ---------- */
#loginwrapper .authShell {
    display: -webkit-flex;
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* ---------- Columna de marca (esquerra) ---------- */
#loginwrapper .authBrand {
    -webkit-flex: 0 0 44%;
    flex: 0 0 44%;
    position: relative;
    padding: 56px 64px;
    color: #fff;
    background: #333a42;
    background: linear-gradient(160deg, var(--lg-slate1) 0%, var(--lg-slate2) 100%);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    overflow: hidden;
}
#loginwrapper .authBrand::before,
#loginwrapper .authBrand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
/* toc corporatiu: glow coral (com la diagonal de moneder.cat) */
#loginwrapper .authBrand::before { width: 520px; height: 520px; top: -180px; right: -200px; background: var(--lg-coral-16); }
#loginwrapper .authBrand::after  { width: 320px; height: 320px; bottom: -130px; left: -100px; background: rgba(255, 255, 255, .045); }

#loginwrapper .authBrandInner { position: relative; z-index: 1; max-width: 380px; }
#loginwrapper .authBrand .logo {
    display: block;
    width: auto;
    max-width: 210px;
    height: auto;
    margin: 0 0 26px;
    /* sense placa: el logo (text blanc) va directe sobre el fons fosc corporatiu */
}
#loginwrapper .authTagline {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0;
    max-width: 340px;
    color: rgba(255, 255, 255, .96);
}

/* Idiomes -> pills, ancorats a baix */
#loginwrapper .authBrand .idiomes {
    position: absolute;
    z-index: 1;
    left: 64px; right: 64px; bottom: 40px;
    margin: 0; width: auto;
}
#loginwrapper .authBrand .idiomesCard {
    background: none; box-shadow: none; border-radius: 0; padding: 0; width: auto;
    display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 6px;
}
#loginwrapper .authBrand .idiomesCard span {
    cursor: pointer;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    font-size: 12px;
    line-height: 1;
    margin: 3px 0;
    padding: 5px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .14);
    -webkit-transition: background .15s, color .15s;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
#loginwrapper .idiomaFlag {
    width: 18px;
    height: 13px;
    margin-right: 7px;
    object-fit: cover;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
#loginwrapper .authBrand .idiomesCard span:hover { background: rgba(255, 255, 255, .26); color: #fff; }
#loginwrapper .authBrand .idiomesCard span.idiomSel {
    background: #fff; color: var(--lg-coral-dark); font-weight: 700; text-decoration: none; cursor: default;
}

/* ---------- Columna del formulari (dreta) ---------- */
#loginwrapper .authMain {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 30px 32px 22px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: stretch;
    align-items: stretch;
    background: #fff;
    overflow-y: auto;
}
/* zona flexible que centra el formulari; deixa el copyright com a footer a baix */
#loginwrapper .authMainInner {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

/* Contenidor del formulari centrat i acotat.
   border/padding a 0 anul·la l'estil del component .card de Bootstrap 5. */
#loginwrapper .card {
    display: block;
    width: 100%;
    max-width: 384px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    position: static;
    -webkit-perspective: none;
    perspective: none;
    border: 0;
    background: none;
    box-shadow: none;
}
#loginwrapper .card .face,
#loginwrapper #login,
#loginwrapper #recupera {
    position: static;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background: none;
    color: var(--lg-ink);
    box-shadow: none;
    -webkit-transform: none !important;
    transform: none !important;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    text-shadow: none;
    overflow: visible;
}
/* Commutació login <-> recupera (JS fa $('.card').addClass/removeClass('flip')) */
#loginwrapper #recupera { display: none; }
#loginwrapper .card.flip #login { display: none; }
#loginwrapper .card.flip #recupera { display: block; -webkit-animation: authFade .28s ease; animation: authFade .28s ease; }
#loginwrapper #login { -webkit-animation: authFade .28s ease; animation: authFade .28s ease; }
@-webkit-keyframes authFade { from { opacity: 0; -webkit-transform: translateY(6px); } to { opacity: 1; -webkit-transform: translateY(0); } }
@keyframes authFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Títols ---------- */
#loginwrapper .authTitle {
    color: var(--lg-ink);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
    line-height: 1.2;
}
#loginwrapper .authSub {
    color: var(--lg-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: -8px 0 18px;
}

/* ---------- Camps ---------- */
#loginwrapper .authField { position: relative; margin: 0 0 14px; }
#loginwrapper .authFieldIcon {
    position: absolute;
    left: 16px; top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #9aa3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}
#loginwrapper .authField input,
#loginwrapper #login input[type="text"],
#loginwrapper #login input[type="password"],
#loginwrapper #recupera input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 0 46px;
    border: 1.5px solid var(--lg-line);
    border-radius: 12px;
    background: var(--lg-field);
    color: var(--lg-ink);
    font-size: 15px;
    outline: none;
    -webkit-transition: border-color .15s, background .15s, box-shadow .15s;
    transition: border-color .15s, background .15s, box-shadow .15s;
    float: none;
    margin: 0;
    box-shadow: none;
}
#loginwrapper .authField input::-webkit-input-placeholder { color: #9aa3af; }
#loginwrapper .authField input::placeholder { color: #9aa3af; }
#loginwrapper .authField input:focus {
    border-color: var(--lg-coral);
    background: #fff;
    box-shadow: 0 0 0 4px var(--lg-coral-14);
}
#loginwrapper input.inputFocus { border-color: var(--lg-coral); }
#loginwrapper #login input.error,
#loginwrapper #recupera input.error,
#loginwrapper input.error {
    border-color: var(--lg-danger) !important;
    background: var(--lg-danger-bg) !important;
}

/* Ull mostra/amaga contrasenya (l'injecta jsViewPassword.js darrere de l'input) */
#loginwrapper .authField .input-group-append {
    position: absolute;
    right: 6px; top: 0;
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    z-index: 2;
}
#loginwrapper .authField .input-group-text {
    background: none;
    border: 0;
    padding: 6px 12px;
    color: #9aa3af;
    cursor: pointer;
}
#loginwrapper .authField .input-group-text:hover { color: var(--lg-coral-dark); }

/* ---------- Recordar credencials ---------- */
#loginwrapper .authRemember {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    font-size: 13px;
    color: var(--lg-muted);
    margin: 2px 0 6px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
#loginwrapper .authRemember input { width: 17px; height: 17px; margin: 0 8px 0 0; accent-color: var(--lg-coral); cursor: pointer; }

/* ---------- Botons principals (#botoEntrar, #regPass) ---------- */
#loginwrapper .button {
    display: block;
    width: 100%;
    float: none;
    margin: 18px 0 0;
    padding: 0;
    height: 52px;
    line-height: 52px;
    min-height: 0;
    border: 0;
    border-radius: 12px;
    background: var(--lg-coral);
    background: linear-gradient(180deg, var(--lg-coral-top), var(--lg-coral-bot));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 10px 20px -6px var(--lg-coral-55);
    cursor: pointer;
    -webkit-transition: box-shadow .15s;
    transition: box-shadow .15s;
}
#loginwrapper .button:hover { box-shadow: 0 12px 24px -6px var(--lg-coral-72); }
#loginwrapper .button:active { -webkit-transform: translateY(1px); transform: translateY(1px); }

/* ---------- Enllaç "Has oblidat la contrasenya" ---------- */
#loginwrapper .authForgot { text-align: center; margin: 16px 0 0; }
#loginwrapper .authForgot a,
#loginwrapper #linkrecupera {
    color: var(--lg-coral-dark);
    font-size: 13px;
    text-decoration: none;
    display: inline;
    clear: none;
    text-align: center;
}
#loginwrapper .authForgot a:hover { text-decoration: underline; }

/* ---------- Registre + credits ---------- */
#loginwrapper .authRegister { margin-top: 22px; text-align: center; }
#loginwrapper .authRegClient,
#loginwrapper .authRegBotiga {
    display: inline-block;
    margin: 4px 8px;
    font-size: 13px;
    color: var(--lg-ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    -webkit-transition: color .15s, border-color .15s;
    transition: color .15s, border-color .15s;
}
#loginwrapper .authRegClient { border-bottom-color: var(--lg-coral); }
#loginwrapper .authRegBotiga { border-bottom-color: var(--lg-slate1); }
#loginwrapper .authRegClient:hover { color: var(--lg-coral); }
#loginwrapper .authRegBotiga:hover { color: var(--lg-slate1); }
/* copyright com a footer a baix de la columna del formulari */
#loginwrapper .authCredits {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    padding: 14px 20px 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: #9aa3af;
}
#loginwrapper .authCredits p { margin: 4px 0; }
#loginwrapper .authCredits a { color: var(--lg-muted); text-decoration: underline; font-weight: 600; }

/* ---------- Recupera: enrere ---------- */
#loginwrapper .authBack {
    display: inline-block;
    color: var(--lg-muted);
    font-size: 13px;
    margin: 0 0 16px;
    text-decoration: none;
    float: none;
    clear: none;
    text-align: left;
}
#loginwrapper .authBack:hover { color: var(--lg-ink); }
#loginwrapper .authBack i,
#loginwrapper .authBack svg { margin-right: 5px; }

/* ---------- Alerts (error / OK / enviant) amb icones Font Awesome 6 ---------- */
#loginwrapper .errorlogin,
#loginwrapper #reenviaError,
#loginwrapper .OK,
#loginwrapper .enviant {
    position: relative;
    background-image: none;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 11px 12px 11px 40px;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
}
#loginwrapper .errorlogin::before,
#loginwrapper #reenviaError::before,
#loginwrapper .OK::before,
#loginwrapper .enviant::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px; top: 12px;
    font-size: 15px;
}
#loginwrapper .errorlogin,
#loginwrapper #reenviaError { background-color: var(--lg-danger-bg); color: var(--lg-danger); }
#loginwrapper .errorlogin::before,
#loginwrapper #reenviaError::before { content: "\f071"; color: var(--lg-danger); }              /* triangle-exclamation */
#loginwrapper .errorlogin p,
#loginwrapper #reenviaError p { margin: 0; color: var(--lg-danger-text) !important; font-size: 13px !important; min-height: 0; }

#loginwrapper .OK { background-color: var(--lg-ok-bg); color: var(--lg-ok); margin-left: 0; margin-right: 0; }
#loginwrapper .OK::before { content: "\f058"; color: var(--lg-ok); }                          /* circle-check */
#loginwrapper .OK p { margin: 0; color: var(--lg-ok) !important; font-size: 13px !important; }

#loginwrapper .enviant { background-color: var(--lg-warn-bg); color: var(--lg-warn); margin-left: 0; margin-right: 0; }
#loginwrapper .enviant::before { content: "\f110"; color: var(--lg-warn); -webkit-animation: authSpin .8s linear infinite; animation: authSpin .8s linear infinite; }  /* spinner */
#loginwrapper .enviant p { margin: 0; color: var(--lg-warn) !important; font-size: 13px !important; }
@-webkit-keyframes authSpin { to { -webkit-transform: rotate(360deg); } }
@keyframes authSpin { to { transform: rotate(360deg); } }

/* límit d'alçada de l'error de recuperació (safety) */
#loginwrapper #reenviaError { max-height: 130px; overflow-y: auto; }

/* Amaga el logo antic si en quedés algun fora de la marca */
#loginwrapper > img.logo { display: none; }

/* ---------- Modals (Bootstrap 5) amb toc de marca Moneder ---------- */
.authModal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
.authModal .modal-header {
    background: linear-gradient(160deg, var(--lg-slate1), var(--lg-slate2));
    color: #fff;
    border-bottom: 0;
    padding: 14px 20px;
}
.authModal .modal-title { font-size: 16px; font-weight: 700; }
.authModal .modal-body { padding: 22px 20px; color: var(--lg-ink); font-size: 14px; }
.authModal .modal-body .form-label { font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 4px; }
.authModal .modal-body .form-control {
    border: 1.5px solid var(--lg-line);
    border-radius: 10px;
    padding: 9px 12px;
}
.authModal .modal-body .form-control:focus {
    border-color: var(--lg-coral);
    box-shadow: 0 0 0 4px var(--lg-coral-14);
}
.authModal .modal-body .form-control.error,
.authModal .modal-body input.error {
    border-color: var(--lg-danger) !important;
    background-color: var(--lg-danger-bg) !important;
}
.authModal .btn-primary {
    --bs-btn-bg: var(--lg-coral);
    --bs-btn-border-color: var(--lg-coral);
    --bs-btn-hover-bg: var(--lg-coral-hover);
    --bs-btn-hover-border-color: var(--lg-coral-hover);
    --bs-btn-active-bg: var(--lg-coral-active);
    --bs-btn-active-border-color: var(--lg-coral-active);
    border-radius: 10px;
    font-weight: 600;
    padding: 9px 20px;
    margin-top: 6px;
}
.authModal a[target="_blank"] { color: var(--lg-coral-dark); text-decoration: underline; }

/* Checkbox "Accepto les condicions": el default.css global sobreescriu el
   margin-left negatiu de Bootstrap i desalinea el check respecte al text.
   El re-maquetem com a fila flex perquè quedin alineats. */
.authModal .form-check {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding-left: 0;
}
.authModal .form-check .form-check-input {
    float: none;
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    vertical-align: middle;
}
.authModal .form-check .form-check-label { margin: 0; }
/* Color de marca (coral) del check quan està marcat + focus */
.authModal .form-check .form-check-input:checked {
    background-color: var(--lg-coral);
    border-color: var(--lg-coral);
}
.authModal .form-check .form-check-input:focus {
    border-color: var(--lg-coral);
    box-shadow: 0 0 0 3px var(--lg-coral-18);
}

/* ---------- Bàner "nova àrea privada de clients" (sobre el formulari) ----------
   La intranet de clients s'ha tret: avisa els clients i els porta a la web de bons.
   Animat perquè es vegi: entra lliscant, la icona fa pols i un reflex hi passa per
   sobre cada pocs segons. Sense animacions si l'usuari ho demana (reduced motion). */
#loginwrapper .authNotice {
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 384px;
    margin: 0 auto 28px;
    padding: 16px 16px 16px 14px;
    border: 1.5px solid var(--lg-coral-18);
    border-radius: 14px;
    background: #fff5f4;
    background: linear-gradient(135deg, #fff6f5 0%, #ffe9e7 100%);
    box-shadow: 0 12px 26px -16px var(--lg-coral-72);
    overflow: hidden;
    -webkit-animation: authNoticeIn .7s cubic-bezier(.2, .9, .3, 1.2) .15s both;
    animation: authNoticeIn .7s cubic-bezier(.2, .9, .3, 1.2) .15s both;
}
/* reflex que creua el bàner */
#loginwrapper .authNotice::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 45%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 100%);
    -webkit-transform: skewX(-18deg);
    transform: skewX(-18deg);
    pointer-events: none;
    -webkit-animation: authNoticeShine 5s ease-in-out 1.2s infinite;
    animation: authNoticeShine 5s ease-in-out 1.2s infinite;
}
#loginwrapper .authNoticeBadge {
    display: inline-block;
    margin-right: 4px;
    vertical-align: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lg-coral);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.3;
    -webkit-animation: authNoticeBadge 2.4s ease-in-out 1s infinite;
    animation: authNoticeBadge 2.4s ease-in-out 1s infinite;
}
#loginwrapper .authNoticeIcon {
    position: relative;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--lg-coral-top), var(--lg-coral-bot));
    color: #fff;
    font-size: 18px;
}
/* anell que s'expandeix des de la icona */
#loginwrapper .authNoticeIcon::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--lg-coral-55);
    -webkit-animation: authNoticePulse 2.4s ease-out 1s infinite;
    animation: authNoticePulse 2.4s ease-out 1s infinite;
}
#loginwrapper .authNoticeBody { position: relative; min-width: 0; }
#loginwrapper .authNoticeTitle {
    margin: 1px 0 5px;
    color: var(--lg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
#loginwrapper .authNoticeText {
    margin: 0 0 10px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
}
#loginwrapper .authNoticeText strong { display: block; margin-top: 4px; color: var(--lg-ink); font-weight: 600; }
#loginwrapper .authNoticeCta {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--lg-coral);
    background: linear-gradient(180deg, var(--lg-coral-top), var(--lg-coral-bot));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 16px -8px var(--lg-coral-72);
    -webkit-transition: box-shadow .15s;
    transition: box-shadow .15s;
}
#loginwrapper .authNoticeCta:hover,
#loginwrapper .authNoticeCta:focus { color: #fff; box-shadow: 0 10px 20px -8px var(--lg-coral-72); }
#loginwrapper .authNoticeCta i {
    -webkit-animation: authNoticeNudge 1.6s ease-in-out 1.4s infinite;
    animation: authNoticeNudge 1.6s ease-in-out 1.4s infinite;
}

/* versió petita a "Has oblidat la contrasenya" */
#loginwrapper .authNoticeMini {
    display: -webkit-flex;
    display: flex;
    gap: 9px;
    margin: -4px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--lg-coral-08);
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.5;
}
#loginwrapper .authNoticeMini i { color: var(--lg-coral-dark); margin-top: 3px; }
#loginwrapper .authNoticeMini a { color: var(--lg-coral-dark); font-weight: 600; }

@-webkit-keyframes authNoticeIn { from { opacity: 0; -webkit-transform: translateY(-14px) scale(.97); } to { opacity: 1; -webkit-transform: none; } }
@keyframes authNoticeIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@-webkit-keyframes authNoticeShine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@keyframes authNoticeShine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@-webkit-keyframes authNoticePulse { 0% { box-shadow: 0 0 0 0 var(--lg-coral-55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(239, 91, 82, 0); } }
@keyframes authNoticePulse { 0% { box-shadow: 0 0 0 0 var(--lg-coral-55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(239, 91, 82, 0); } }
@-webkit-keyframes authNoticeBadge { 0%, 70%, 100% { -webkit-transform: none; } 78% { -webkit-transform: rotate(-8deg) scale(1.08); } 86% { -webkit-transform: rotate(6deg) scale(1.08); } 93% { -webkit-transform: rotate(-3deg); } }
@keyframes authNoticeBadge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-8deg) scale(1.08); } 86% { transform: rotate(6deg) scale(1.08); } 93% { transform: rotate(-3deg); } }
@-webkit-keyframes authNoticeNudge { 0%, 100% { -webkit-transform: none; } 50% { -webkit-transform: translateX(4px); } }
@keyframes authNoticeNudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
    #loginwrapper .authNotice,
    #loginwrapper .authNotice::before,
    #loginwrapper .authNoticeBadge,
    #loginwrapper .authNoticeIcon::after,
    #loginwrapper .authNoticeCta i { -webkit-animation: none; animation: none; }
    #loginwrapper .authNotice::before { display: none; }
}

/* Modal de l'àrea privada de clients */
.authModal .authModalNote {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--lg-field);
    color: #4b5563;
    font-size: 13px;
}
.authModal .authModalActions {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.authModal .authModalActions .btn-primary { color: #fff; text-decoration: none; }
.authModal .authModalActions .btn-link { color: var(--lg-muted); margin-top: 6px; text-decoration: none; }
.authModal .authModalActions .btn-link:hover { color: var(--lg-ink); }

/* ---------- Responsive: apila brand a dalt + form a sota ---------- */
@media screen and (max-width: 860px) {
    body.login { height: auto; }
    #loginwrapper { min-height: 100vh; }
    #loginwrapper .authShell {
        -webkit-flex-direction: column;
        flex-direction: column;
        min-height: 100vh;
    }
    #loginwrapper .authBrand {
        -webkit-flex: none;
        flex: none;
        padding: 32px 30px 26px;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }
    #loginwrapper .authBrand::before { width: 220px; height: 220px; top: -90px; right: -70px; }
    #loginwrapper .authBrand::after { display: none; }
    #loginwrapper .authBrandInner { max-width: none; }
    #loginwrapper .authBrand .logo { max-width: 150px; margin-bottom: 14px; }
    #loginwrapper .authTagline { font-size: 15px; max-width: none; }
    #loginwrapper .authBrand .idiomes { position: static; left: auto; right: auto; bottom: auto; margin-top: 18px; }
    #loginwrapper .authMain { padding: 32px 26px 40px; -webkit-flex: 1 1 auto; flex: 1 1 auto; }
    #loginwrapper .card { max-width: 420px; }
    #loginwrapper .authNotice { max-width: 420px; margin-bottom: 22px; }
    #loginwrapper .authTitle { font-size: 23px; margin-bottom: 20px; }
    #loginwrapper .authCredits { padding: 18px 20px 0; }
}
@media screen and (max-width: 440px) {
    #loginwrapper .authMain { padding: 26px 20px 32px; }
}
