.tcb-register-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.tcb-register-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    font-family: inherit;
}

.tcb-form-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.tcb-form-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
}

.tcb-form-header p {
    margin: 0 0 5px;
    font-size: 16px;
    color: #666666;
}

.tcb-form-section {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.tcb-form-section h3 {
    margin: 15px 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: #6c980d;
    
}

.tcb-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.tcb-form-row-half .tcb-form-field {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
}

.tcb-form-row-three .tcb-form-field {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 0;
}

.tcb-form-field {
    width: 100%;
}

.tcb-form-field label {
    
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333333;
}

.tcb-form-field input,
.tcb-form-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    background: #ffffff;
}

.tcb-form-field input:focus,
.tcb-form-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px rgba(0,115,170,0.2);
}

.tcb-field-help {
    margin-top: 4px;
    font-size: 14px;
    color: #777777;
}

.tcb-family-box {
    margin-top: 15px;
    padding: 12px 15px 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #c0d4e8;
}

.tcb-family-header h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 600;
}

.tcb-family-header p {
    margin: 0 0 10px;
    font-size: 12px;
    color: #666666;
}

.family-member-card {
    margin-bottom: 10px;
    padding: 10px 10px 5px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e0e7ef;
}

.tcb-form-footer {
    margin-top: 25px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    text-align: right;
}

.tcb-btn-primary {
    display: inline-block;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    background: #0073aa;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.tcb-btn-primary:hover {
    background: #005f8a;
}

.membre {
    display: inline-block;
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 4px;
    border: none;
    background: #0aba59 !important;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
}

.membre:hover {
    background: #73f019 !important;
}



.tcb-btn-secondary {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #0073aa;
    background: #ffffff;
    color: #0073aa;
    cursor: pointer;
    font-weight: 500;
    margin-top: 5px;
}

.tcb-btn-secondary:hover {
    background: #e6f2f8;
}

.tcb-footer-note {
    margin-top: 12px !important;
    font-size: 12px;
    color: #777777;
}

.tcb-member-message {
    max-width: 800px;
    margin: 20px auto;
    padding: 12px 15px;
    border-radius: 6px;
    background: #f1f8ff;
    border: 1px solid #cfe3ff;
    font-size: 14px;
    text-align: center;
    min-height: 140px;
    line-height: 50px;
}

@media (max-width: 640px) {
    .tcb-register-form {
        padding: 20px 15px 22px;
    }

    .tcb-form-row-half .tcb-form-field,
    .tcb-form-row-three .tcb-form-field {
        flex: 1 1 100%;
    }

    .tcb-form-footer {
        text-align: left;
    }
}


/* Area de soci */
.tcb-account-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px 40px;
}

.tcb-account-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.tcb-account-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
}

.tcb-account-header p {
    margin: 0;
    font-size: 14px;
    color: #666666;
}

.tcb-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.tcb-account-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 18px 18px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
}

.tcb-account-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.tcb-account-field {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f7f7f7;
    font-size: 14px;
}

.tcb-account-field:last-child {
    border-bottom: none;
}

.tcb-label {
    color: #666666;
    min-width: 130px;
}

.tcb-value {
    font-weight: 500;
    text-align: right;
}

.tcb-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

.tcb-tag-primary {
    background: #0073aa;
    color: #ffffff;
}

.tcb-tag-secondary {
    background: #e5ecf3;
    color: #334155;
}

.tcb-tag-success {
    background: #daf5e4;
    color: #166534;
}

.tcb-tag-warning {
    background: #fef3c7;
    color: #92400e;
}

.tcb-tag-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.tcb-note {
    margin-top: 8px;
    font-size: 13px;
    color: #666666;
}

.tcb-account-full {
    margin-top: 15px;
}

.tcb-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 14px;
}

.tcb-table th,
.tcb-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.tcb-table th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 13px;
}

@media (max-width: 768px) {
    .tcb-account-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tcb-account-field {
        flex-direction: column;
        align-items: flex-start;
    }
    .tcb-value {
        text-align: left;
    }
}

.tcb-btn-remove-member {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #dc2626;
    background: #ffffff;
    color: #dc2626;
    cursor: pointer;
    font-weight: 500;
}

.tcb-btn-remove-member:hover {
    background: #fee2e2;
}


/* Caixa general del formulari de login */
.tcb-member-form-wrap.tcb-member-login-wrap {
  max-width: 480px;
  margin: 40px auto;
  padding: 24px 24px 28px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Titol */
.tcb-member-login-wrap h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

/* Missatges */
.tcb-member-message {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.tcb-member-message.tcb-member-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.tcb-member-message.tcb-member-success {
  background: #ecfdf3;
  border: 1px solid #6ee7b7;
  color: #166534;
}

/* Formulari */
.tcb-member-login-form {
  margin-top: 4px;
}

.tcb-member-login-form .tcb-form-field {
  margin-bottom: 16px;
}

.tcb-member-login-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.tcb-member-login-form input[type="email"],
.tcb-member-login-form input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d4d4d8;
  box-sizing: border-box;
  font-size: 14px;
}

.tcb-member-login-form input[type="email"]:focus,
.tcb-member-login-form input[type="password"]:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

/* Boton */
.tcb-member-login-form .tcb-form-actions {
  margin-top: 8px;
  text-align: center;
}

.tcb-member-login-form .tcb-form-actions .button.button-primary {
  min-width: 160px;
  padding: 8px 18px;
  font-size: 16px;
  border-radius: 999px;
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  margin-top: 20px;
}

.tcb-member-login-form .tcb-form-actions .button.button-primary:hover {
  background: #115e59;
  border-color: #115e59;
}

/* Mobile */
@media (max-width: 600px) {
  .tcb-member-form-wrap.tcb-member-login-wrap {
    margin: 24px 12px;
    padding: 20px 16px 22px;
  }
}


/* Caixa principal del formulari de login */
.tcb-member-login-wrap {
  max-width: 420px;
  margin: 40px auto;
  padding: 24px 28px;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

/* Missatge si ja estas loguejat */
.tcb-member-message {
  max-width: 420px;
  margin: 40px auto;
  padding: 16px 20px;
  background: #e6f6ea;
  border: 1px solid #b4dec1;
  border-radius: 6px;
  color: #286b3c;
  font-size: 16px !important;
  text-align: center !important;
}

/* Missatge d error */
.tcb-member-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #fde8e8;
  border: 1px solid #f5bebe;
  border-radius: 6px;
  color: #b42323;
  font-size: 14px;
}

/* Camps del formulari */
.tcb-member-field {
  margin-bottom: 16px;
}

.tcb-member-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.tcb-member-field input[type="text"],
.tcb-member-field input[type="password"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  background: #ffffff;
}

.tcb-member-field input[type="text"]:focus,
.tcb-member-field input[type="password"]:focus {
  border-color: #1e88e5;
  outline: none;
  box-shadow: 0 0 0 1px rgba(30, 136, 229, 0.15);
}

/* Boto d enviar */
.tcb-member-field button[type="submit"],
.tcb-member-login-wrap button[type="submit"] {
  display: inline-block;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  background: #1e88e5;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  margin-top: 20px;
}

.tcb-member-field button[type="submit"]:hover,
.tcb-member-login-wrap button[type="submit"]:hover {
  background: #1565c0;
}

.tcb-member-field button[type="submit"]:active,
.tcb-member-login-wrap button[type="submit"]:active {
  transform: translateY(1px);
}

/* Per si el formulari esta enmig d altres coses, una mica d aire */
.tcb-member-login-wrap form {
  margin: 0;
}


/* Spinner boto registre soci */
#tcb-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#tcb-register-submit .tcb-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tcb-spin 0.8s linear infinite;
}

#tcb-register-submit.is-loading .tcb-spinner {
  display: inline-block;
}

#tcb-register-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

@keyframes tcb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Caixa consentiment SEPA */
.tcb-consent-box {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  width: 100%;
}

.tcb-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
  font-weight: 600;
  color: #111827;
}

.tcb-consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.tcb-consent-label span {
  display: block;
  font-weight: 600;
}
