.seccio-usuaris {
    width: 100%;
    max-width: 650px; /* Ampliat per albergar còmodament el formulari d'alta massiu */
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: center;
}

.capsa-formulari-premium {
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 35px 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.pestanyes-login {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    gap: 10px;
}

.pestanya {
    flex: 1;
    background: none;
    border: none;
    color: #888888;
    font-size: 1.05rem;
    font-family: inherit;
    padding-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.pestanya:hover {
    color: #ffffff;
}

.pestanya.active {
    color: var(--metall-or);
    border-bottom: 2px solid var(--metall-or);
}

.formulari-dinamic {
    display: none;
}

.formulari-dinamic.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.notificacio-camps {
    color: #aaaaaa;
    font-size: 0.85rem;
    font-style: italic;
    margin: 0 0 5px 0;
}

.grup-camp {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grup-camp label {
    color: #dddddd;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.grup-camp input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.grup-camp input:focus {
    outline: none;
    border-color: var(--metall-or);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

/* Data input dark style override */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.opcions-recuperar {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 8px;
}
/* Mes visible per a tothom: pindola subtil daurada amb bona area de toc, sense competir amb els botons principals */
.opcions-recuperar .enllaç-or {
    display: inline-block;
    padding: 10px 16px;
    /*font-size: 0.95rem;*/
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.07);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.opcions-recuperar .enllaç-or:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--metall-or);
    color: #ffffff;
    text-decoration: none;
}

.enllaç-or {
    color: var(--metall-or);
    font-size: 0.85rem;
    text-decoration: none;
}

.enllaç-or:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Quadre de protecció de dades RGPD de la imatge */
.text-legal-rgpd {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: #b3b3b3;
    line-height: 1.5;
    margin-top: 10px;
}

.text-legal-rgpd strong {
    color: var(--metall-or);
}

/* Llistat vertical de Checkboxes de la foto */
.camp-checkbox-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.opcio-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.4;
}

.opcio-check input[type="checkbox"] {
    accent-color: var(--metall-or);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Captcha anti-bot modular */
.verificacio-captcha {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 6px;
}

.captcha-text {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--metall-or);
    color: var(--metall-or);
    padding: 6px 16px;
    font-size: 1.35rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    border-radius: 6px;
    margin-left: 8px;
    letter-spacing: 2px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Botó d'acció */
.btn-formulari-premium {
    background: var(--metall-or);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.btn-formulari-premium2 {
    background: var(--metall-or);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
	text-align:center;
	text-decoration:none;
}
.btn-formulari-premium2:hover {
    background: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-formulari-premium:hover {
    background: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.active-nav-user {
    color: var(--metall-or) !important;
}

@media (max-width: 600px) {
    .capsa-formulari-premium {
        padding: 25px 15px;
    }
    /* L'enllac de recuperar contrasenya ha de ser evident i facil de tocar amb el dit */
  /*  .opcions-recuperar {
        text-align: right;
        margin-top: 9px;
        margin-bottom: 8px;
    }
    .opcions-recuperar .enllaç-or {
        display: inline-block;
        width: 100%;
        box-sizing: border-box;
        padding: 13px 16px;
        font-size: 1rem;
    }*/
}
/* ==========================================================================
   ESMENES I CORRECCIONS PER A L'ALTA D'USUARI (`usuaris.html`)
   ========================================================================== */

/* 1. Solució totalment visible del Bloc Legal (Sense scroll, requeriment legal) */
.text-legal-rgpd-visible {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 10px 0;
    text-align: left;
}

.text-legal-rgpd-visible strong {
    color: var(--metall-or);
    display: inline-block;
    margin-top: 5px;
}
.text-legal-rgpd-visible p:first-child strong {
    margin-top: 0;
}

/* 2. Solució per a l'estil de la data (Datetime input) */
.camp-data-dark {
    color-scheme: dark; /* Força que el sistema operatiu obri el desplegable en mode fosc */
    color: #ffffff !important;
    font-family: inherit;
}

/* 3. Solució Captcha compacte idèntic al formulari de contactes */
.grup-camp-captcha-compacte {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    padding: 12px 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.grup-camp-captcha-compacte label {
    color: #dddddd;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

.captcha-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--metall-or);
    color: var(--metall-or);
    padding: 6px 16px;
    font-weight: 700;
    font-family: 'Georgia', serif;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 1.35rem;
    letter-spacing: 2px;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.grup-camp-captcha-compacte input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
.grup-captcha {
display: flex;
  gap: 10px;             /* Espacio entre el input y la imagen */
  width: 100%;           /* O el ancho que quieras darle a este bloque, ej: 400px */
  max-width: 1200px;
}

/* El input se queda con el 70% de la anchura total */
.grup-captcha input[name="saber"] {
width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

/* La imagen medirá exactamente el 30% de la anchura total */
.grup-captcha .imatgecaptcha {
width: 100%;
  height: auto;          /* Para que no se deforme */
  object-fit: contain;   /* Ajusta la imagen dentro de ese 30% */
}
.grup-camp-captcha-compacte input:focus {
    outline: none;
    border-color: var(--metall-or);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

@media (max-width: 480px) {
    .grup-camp-captcha-compacte {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
/* Contenedor relativo */
.password-container {
  position: relative;
  width: 100%;
 
}
.titol-seccio-premium {
    text-align: center;
    color: #ffffff;
    font-family: 'Georgia', serif;
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7); /* Ombra forta per separar el text del fons gris */
}

/* El subtítol daurat ara brilla de dalt a baix de manera uniforme a tot el text */
.titol-seccio-premium .text-or-brillant em {
    font-style: italic;
    background: linear-gradient(180deg, #ffffff 0%, #fff4cc 25%, #d4af37 70%, #aa7c11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 10px;
    font-size: 2rem;
    letter-spacing: 0.5px;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.8)); /* Reforç de contrast per a lletres fines */
}
/* El campo de texto */
.password-container input {
  width: 100%;
  padding: 10px 45px 10px 10px; /* Un poco más de espacio a la derecha */
  font-size: 16px;
  border: 1px solid  var(--metall-or);
  border-radius: 4px;
  box-sizing: border-box;
}

/* El botón invisible que sostiene la foto */
.password-container button {
  position: absolute;
  right: 12px;

  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  outline: none;
}

/* Tamaño de tu foto (ajústalo si lo necesitas más grande o pequeño) */
.icono-password {
  width: 24px;
  height: auto;
  display: block;
}