/* Estilos específicos del SSO */

/* --- Visibilidad de secciones --- */
.sso-section {
    display: none;
}

.sso-section.is-active {
    display: block;
}

/* --- Menú desplegable solo CSS --- */
.css-dropdown {
    position: relative;
    display: inline-block;
}

.css-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    /* Asegurar que aparezca sobre el resto del contenido */
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
}

.css-dropdown-content li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.css-dropdown-content li a:hover {
    background-color: #f1f1f1;
}

/* Mostrar el menú desplegable al pasar el ratón */
.css-dropdown:hover .css-dropdown-content {
    display: block;
}

/* --- Estilos provenientes de base.twig --- */

.user-menu .dropdown.menu>li>a.no-caret::after {
    display: none !important;
}

.user-menu .dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper,
.password-wrapper * {
    box-sizing: border-box !important;
}

.password-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.password-wrapper input {
    padding-right: 2.5rem !important;
    margin: 0 !important;
}

.form-group .password-wrapper {
    margin-bottom: 1rem;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.3rem;
    outline: none !important;
}

.password-toggle:hover {
    color: #002744;
}

.password-toggle i {
    position: static !important;
    transform: none !important;
    line-height: 1;
    display: block;
}

/* Refinamientos globales responsivos */
/* @media (max-width: 640px) {
    .seccion {
        padding: 1.5rem 1rem !important;
        margin-bottom: 0.5rem;
    }

    .bigText {
        font-size: 1.5rem !important;
    }

    .padding-vertical-2 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    } 
} */

@media (max-width: 1024px) {
    .flexBetween {
        flex-wrap: wrap;
    }
}

/* Área de pie de página/normas */
.bgGreyClaro.padding-1 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 640px) {
    .bgGreyClaro.padding-1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- Mejora de los elementos callout --- */
.callout {

    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: .8rem;
    margin-bottom: 1rem;
    font-size: 14px;
    text-align: left;
}

.callout.alert {
    background-color: #fff5f5;
    color: #55150e;
    border-color: #55150e;
}

.callout.success {
    background-color: #f0fdf4;
    color: #14532d;
    border-color: #14532d;
}

.callout.warning {
    background-color: #fffbef;
    color: #713f12;
    border-color: #713f12;
}

.callout .close-button {
    top: 1px;
    right: unset;
    position: relative;
    color: inherit;
    font-size: 1.5rem;
}

.callout .close-button:hover {
    opacity: 1;
}

.callout .title {
    margin-bottom: .2rem;
    font-size: 16px;
    font-weight: bold;
}

.callout p {
    line-height: 1.4;
    margin-bottom: .5rem;
}

.callout p:last-of-type {
    margin-bottom: 0;
}

.callout[data-closable] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Estilos .card usado en creación de cuenta */

.card {
    border-radius: 12px;
    border: 1px solid #e3e4e6;
}

.card p {
    font-family: unset;
    font-size: 14px;
    margin-bottom: 0;
}

.card .card-section .grid-x p {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

/* End Estilos .card usado en creación de cuenta */

/* --- Centrado de las normas de uso --- */
#normes_us {
    text-align: center;
    width: 100%;
}

#normes_us p {
    margin-bottom: 0;
}

/* Noves regles Juan Carlos */


.ssoPage .seccion {
    margin-bottom: 1rem;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

@media screen and (max-width:800px) {
    .ssoPage .seccion {
        padding: 1rem;
        /*border:unset; */
    }
}

@media screen and (max-width:639px) {
    .ssoPage .seccion {
        padding: 0;
        border: unset;
        box-shadow: unset;
    }
}



/* Iguala altura del menú superior */
.ssoPage .barTop {
    height: 40px;
}

/* Tamaño icono del avatar */
.ssoPage .barTop .user-menu .is-dropdown-submenu-parent>a {
    font-size: 27px;
}

/* Anula coloreado de avatar si el menú esta abierto */
.ssoPage .barTop .user-menu .dropdown.menu>li.is-active>a {
    color: white;
}

/* Aumenta tamaño iconos del menú */
.ssoPage .barTop .user-menu li.is-dropdown-submenu-item i {
    font-size: 18px;
    position: relative;
    bottom: 2px;
}

.ssoPage .barTop .user-menu .is-dropdown-submenu {
    margin-top: 8px !important;
}

.ssoPage .barTop .user-menu .is-dropdown-submenu a:hover {
    color: #02c !important;
}

.ssoPage .barTop .user-menu .is-dropdown-submenu a.disabled {
    color: #999 !important;
    cursor: not-allowed !important;
}


a.button i.ph {
    vertical-align: bottom;
}

button.button-link {
    padding: 0 !important;
    background: none;
    color: #002744;
}



.ssoPage .menu>li>a i {
    margin-right: 0;
}

/* Página registra un compte */


.ssoPage .switch-field {
    display: flex;
    gap: .2rem;
    align-items: center;
}

.ssoPage .switch-field>* {
    margin: 0;
}

.ssoPage .switch-field label {
    line-height: 1;
}



/* en canviar clau d'acces porque salen dos botones seguidos */
.button+.button {
    margin-top: 0 !important;
}

/* End Noves regles Juan Carlos */

/* Password policies */

.policy-item {
    display: flex;
    align-items: flex-start;
    gap: .3rem;
    transition: color 0.3s ease;
    line-height: 1;
    margin-bottom: 0.35rem;
    font-size: 14px;
}

.policy-item i {
    font-size: 1rem;
    margin-top: 0;
}

.text-alert {
    color: #cc4b37;
}

.text-success {
    color: #257e45;
}

/*.dotted {
    border-bottom: 1px dotted;
} */

/* End Password policies */

/* Captcha */

.captcha {
    display: flex;
    justify-content: center;
}

/* End Captcha */