/*
 * ÀREA PRIVADA — estils del tema.
 * L'ÚLTIM full de la cascada: aquí es tomba tot el que porta el plugin,
 * inclosa la seva paleta blava d'un altre projecte (override-intranet.css).
 * El responsive NO va aquí, va a override-media.css.
 * L'encua inc/extend-functions/area-privada.php a prioritat 99.
 */

/* AREA PRIVADA BASE START */

.login-page {
    background: #f4f2ee;
}

.area-privada {
    background: #f1f5fe;
}

.area-privada,
.area-privada p,
.area-privada label,
.area-privada input,
.area-privada button {
    font-family: 'Konstanz-Regular';
    color: #424242;
}

/* AREA PRIVADA BASE END */


/* CONTINGUT SECCIONS START */

.area-privada .main-container {
    float: none;
    width: 100%;
    grid-template-columns: auto 1fr;
}

.area-privada .container {
    width: 100%;
    padding: 34px 40px 60px;
}

.area-privada .container > .row {
    display: flow-root;
}

.area-privada .container > .row + .row {
    margin-top: 28px;
}

.area-privada .m-tit {
    margin-bottom: 28px;
    font-family: 'Konstanz-Bold';
    font-size: 30px;
    line-height: 38px;
    color: #000000;
}

.area-privada .cont-flex {
    margin: 0 0 40px;
}

.area-privada .cont-flex:last-child {
    margin-bottom: 0;
}

.area-privada .cont-flex .present-sec {
    margin-top: 0;
    padding: 0;
}

.area-privada .cont-flex .document-list {
    margin-top: 0;
}

.area-privada .cont-flex h2 {
    margin-bottom: 20px;
    font-family: 'Konstanz-SemiBold';
    font-size: 22px;
    line-height: 30px;
    color: #000000;
}

.area-privada .cont-flex p {
    font-size: 16px;
    line-height: 26px;
}

/* Llistes de descarregables i d'enllaços: fitxes clicables, no text corregut. */
.area-privada .document-list ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    border: 0;
}

.area-privada .document-list ul li {
    padding: 0;
    background: #ffffff;
    border: 0;
    border-radius: 12px;
    transition: box-shadow .3s ease;
}

.area-privada .document-list ul li:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.area-privada .document-list ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 16px;
    line-height: 24px;
    color: #192432;
}

.area-privada .document-list ul li a:hover {
    color: #067cc0;
}

.area-privada .document-list ul li img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.area-privada .document-list .file-info {
    margin-left: auto;
    font-size: 13px;
    color: #767676;
    white-space: nowrap;
}

/* CONTINGUT SECCIONS END */


/* PERFIL START */

.area-privada .perfil-pad {
    width: 100%;
    padding: 0;
    background: transparent;
}

.area-privada .perfil-pad h2 {
    margin: 0 0 18px;
    font-family: 'Konstanz-SemiBold';
    font-size: 20px;
    line-height: 28px;
    color: #000000;
}

.area-privada .cont-form + h2 {
    margin-top: 34px;
}

.area-privada .cont-form {
    width: 100%;
    max-width: 520px;
    padding: 26px 28px;
    background: #ffffff;
    border-radius: 14px;
}

.area-privada .cont-form ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-privada .cont-form ul li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
}

.area-privada .cont-form .label-box,
.area-privada .cont-form .input-box {
    width: 100%;
    margin: 0;
    padding: 0;
}

.area-privada .cont-form .label-box label {
    font-family: 'Konstanz-SemiBold';
    font-size: 14px;
    line-height: 20px;
    color: #424242;
}

.area-privada .cont-form .label-box p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 19px;
    color: #767676;
}

.area-privada .cont-form input[type="text"],
.area-privada .cont-form input[type="email"],
.area-privada .cont-form input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    font-family: 'Konstanz-Regular';
    font-size: 15px;
    line-height: 46px;
    color: #424242;
    background: #ffffff;
    border: 1px solid #e0ddd7;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .3s ease;
}

.area-privada .cont-form input[type="text"]:focus,
.area-privada .cont-form input[type="email"]:focus,
.area-privada .cont-form input[type="password"]:focus {
    border-color: #f6a954;
    outline: none;
}

.area-privada .cont-form li.sumbit-align {
    align-items: flex-start;
    margin-top: 6px;
}

.area-privada .cont-form input[type="submit"] {
    width: 100%;
    height: 46px;
    padding: 0 28px;
    font-family: 'Konstanz-SemiBold';
    font-size: 15px;
    line-height: 46px;
    letter-spacing: .4px;
    color: #ffffff;
    background: #f6a954;
    border: none;
    border-radius: 46px;
    cursor: pointer;
    transition: background .3s ease;
}

.area-privada .cont-form input[type="submit"]:hover {
    background: #067cc0;
}

.area-privada .form-response {
    width: 100%;
    margin-bottom: 6px;
}

.area-privada .form-response .notice {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    font-family: 'Konstanz-Regular';
    font-size: 14px;
    line-height: 20px;
    color: #424242;
    background: #f1f5fe;
    border: 1px solid #d5e2f7;
    border-left-width: 4px;
    border-radius: 10px;
    box-shadow: none;
}

.area-privada .form-response .notice p {
    padding: 0;
}

.area-privada .form-response .notice.notice-success {
    background: #eef8ef;
    border-color: #46b450;
}

.area-privada .form-response .notice.notice-error {
    background: #fdeeee;
    border-color: #dc3232;
}

/* La foto es desa a uploads/avatars/ pero el plugin mai la pinta (perfil.php:11
   i :114) i no es fa servir enlloc de l'area. Amagada fins que ho arreglin. */
.area-privada .perfil-pad h2.foto,
.area-privada #AvatarForm {
    display: none;
}

/* PERFIL END */


/* CAPCALERA LOGO START */


.area-privada .logo a {
    display: inline-block;
    line-height: 0;
}

.area-privada .logo img {
    float: none;
    width: auto;
    max-width: none;
    height: 46px;
}

.area-privada header.header-intranet .row {
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* El `nice-select` no s'arriba a inicialitzar i queda el select del navegador,
   en Arial. */
.area-privada .lang-slt {
    width: auto;
}

.area-privada .lang-slt select {
    width: auto;
    height: 38px;
    padding: 0 30px 0 12px;
    font-family: 'Konstanz-Regular';
    font-size: 15px;
    line-height: 38px;
    color: #424242;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 38px;
    cursor: pointer;
    appearance: none;
    transition: border-color .3s ease;
}

.area-privada .lang-slt select:hover {
    border-color: #d7d3cb;
}

.area-privada .lang-slt select:focus-visible {
    outline: 2px solid #f6a954;
    outline-offset: 2px;
}

/* CAPCALERA LOGO END */


/* PRESENTACIO TARGETES START */


.area-privada .category-list ul {
    gap: 24px;
}

.area-privada .category-list ul li {
    flex: 1 1 300px;
    width: auto;
    margin: 0;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: box-shadow .3s ease, transform .3s ease;
}

.area-privada .category-list ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.area-privada .category-list ul li a {
    display: block;
    height: 100%;
}

.area-privada .category-list .category-img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.area-privada .category-list .category-cnt {
    padding: 22px 24px;
}

.area-privada .category-list .card-title {
    display: block;
    font-family: 'Konstanz-SemiBold';
    font-size: 22px;
    line-height: 28px;
    color: #000000;
}

.area-privada .category-list ul li:hover .card-title {
    color: #f6a954;
}

/* PRESENTACIO TARGETES END */




/* LOGIN RESET PLUGIN START */

.login-frm .frm-input-ctrl {
    float: unset;
    width: unset;
    height: unset;
    background-color: unset;
    border-radius: unset;
    position: unset;
}

/* LOGIN RESET PLUGIN END */


/* LOGIN FONS START */

.login-left {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.login-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.login-left:has(img)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .25);
}

.login-left .login-slider {
    display: none;
}

/* LOGIN FONS END */


/* LOGIN TARGETA START */

.login-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    overflow: hidden;
    background: #f4f2ee;
}

.login-right {
    position: relative;
    z-index: 1;
    margin: auto;
    width: 100%;
    max-width: 460px;
    padding: 48px 44px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .10);
}

.login-right #tab-container {
    width: 100%;
}

/* LOGIN TARGETA END */


/* LOGIN PESTANYES START */

.login-right ul.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 28px;
    width: 100%;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
}

.login-right ul.tabs li.tab-link {
    position: relative;
    padding: 0 2px 14px;
    font-family: 'Konstanz-SemiBold';
    font-size: 22px;
    line-height: 28px;
    color: #b6b6b6;
    background: none;
    cursor: pointer;
    transition: color .4s ease;
}

.login-right ul.tabs li.tab-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 3px;
    background: #f6a954;
    transition: width .4s ease;
}

.login-right ul.tabs li.tab-link:hover {
    color: #424242;
}

.login-right ul.tabs li.tab-link.current {
    color: #000000;
}

.login-right ul.tabs li.tab-link.current::after {
    width: 100%;
}

.login-right ul.tabs li.tab-link:only-child {
    padding-bottom: 16px;
    font-size: 26px;
    line-height: 32px;
    cursor: default;
}

.login-right ul.tabs li.tab-link:only-child::after {
    display: none;
}

.login-right .tab-content {
    display: none;
    width: 100%;
    background: transparent;
}

.login-right .tab-content.current {
    display: block;
}

/* LOGIN PESTANYES END */


/* LOGIN FORMULARI START */

.login-frm.form-list {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.login-frm h2 {
    width: 100%;
    margin-bottom: 26px;
    font-family: 'Konstanz-Regular';
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #767676;
}

.login-frm .form-box .frm-input {
    width: 100%;
    margin-bottom: 14px;
}

.login-frm .form-box .frm-input:last-child {
    margin-bottom: 0;
}

.login-frm .form-box input[type="text"],
.login-frm .form-box input[type="email"],
.login-frm .form-box input[type="password"] {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    font-family: 'Konstanz-Regular';
    font-size: 16px;
    line-height: 54px;
    color: #424242;
    background: #ffffff;
    border: 1px solid #e0ddd7;
    border-radius: 54px;
    box-shadow: none;
    transition: border-color .3s ease;
}

.login-frm .form-box input[type="text"]:focus,
.login-frm .form-box input[type="email"]:focus,
.login-frm .form-box input[type="password"]:focus {
    border-color: #f6a954;
    outline: none;
}

.login-frm .form-box ::placeholder {
    color: #979797;
}

.login-frm .form-box .chk-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 10px;
    width: 100%;
    margin-top: 14px;
}

.login-frm .form-box .frm-input.checkbox {
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
}

.login-frm .form-box .frm-input.checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 9px 0 0;
    accent-color: #f6a954;
    cursor: pointer;
}

.login-frm .form-box .frm-input.checkbox label {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #424242;
    cursor: pointer;
}

.login-frm .form-box .frm-input.checkbox.has-ovida a {
    font-size: 14px;
    line-height: 20px;
    color: #067cc0;
    transition: color .3s ease;
}

.login-frm .form-box .frm-input.checkbox.has-ovida a:hover {
    color: #f6a954;
}

/* LOGIN FORMULARI END */


/* LOGIN BOTO START */

.login-frm .form-box .login-btn {
    width: 100%;
    margin-top: 28px;
    text-align: center;
}

.login-frm .form-box button.env-btn {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    font-family: 'Konstanz-SemiBold';
    font-size: 16px;
    line-height: 54px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #f6a954;
    border: none;
    border-radius: 54px;
    cursor: pointer;
    transition: background .3s ease;
}

.login-frm .form-box button.env-btn:hover {
    background: #067cc0;
}

.login-frm .form-box .login-btn p {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 22px;
    color: #767676;
}

.login-frm .form-box .login-btn p a {
    color: #067cc0;
    transition: color .3s ease;
}

.login-frm .form-box .login-btn p a:hover {
    color: #f6a954;
}

/* LOGIN BOTO END */


/* LOGIN NOTIFICACIONS START */

.login-frm .notice {
    width: 100%;
    margin-bottom: 20px;
    border-left-color: #f6a954;
}

/* LOGIN NOTIFICACIONS END */
